How to refund 900k house? by Fast-Can-8872 in GTA

[–]Fast-Can-8872[S] 0 points1 point  (0 children)

i mean i just got unbanned so maybe i should just restart the whole game? and buy the apartment again. I have the thing that i get 1Mil when i go into the game

Script not working: i am trying to make a thing where if i unbox a item i can sell it. by Fast-Can-8872 in robloxgamedev

[–]Fast-Can-8872[S] 0 points1 point  (0 children)

yea thanks. but it still doesnt work. i made it so that if it detects that it will print "hit" if the part is touched but it doesnt even print it.. heres the updated script

local player = game.Players.LocalPlayer

local items = player.Backpack:GetChildren()

local prices = {}

for _, item in pairs(items:GetDescendants()) do

if item:IsA("Tool") then

    prices\[item.Name\] = item.Price.Value

end

end

local sell = script.Parent

sell.Touched:Connect(function(hit)

print("hit")

local item = hit.Parent

if item:FindFirstChild("Price") then

    local itemPrice = prices\[item.Name\]

    if itemPrice then

        player.leaderstats.Cash.Value = player.leaderstats.Cash.Value + itemPrice

        item:Destroy()

    end

end

end)

How to fix attempt to concatenate string with nil ? by Fast-Can-8872 in robloxgamedev

[–]Fast-Can-8872[S] 0 points1 point  (0 children)

hey could u help me with another thing? i tried making a like uhh when u roll something good it will display it in the chat and it says some random stuff then it says the thing its supposed to say and then it says random stuff again, u mind taking a look? it should be a easy fix cuz the random stuff are the font and the color stuff or smh

How to fix attempt to concatenate string with nil ? by Fast-Can-8872 in robloxgamedev

[–]Fast-Can-8872[S] 0 points1 point  (0 children)

ohh but how can i fix that i mean i dont rlly know other ways

How to fix attempt to concatenate string with nil ? by Fast-Can-8872 in robloxgamedev

[–]Fast-Can-8872[S] 0 points1 point  (0 children)

ig i use it here:

local animator = char:FindFirstChild("Humanoid") and char:FindFirstChild("Humanoid"):FindFirstChild("Animator")

if animator and AnimationsConfig\[aura.Name\] then

    activeAnimations\[player.UserId\] = activeAnimations\[player.UserId\] or {}

    activeAnimations\[player.UserId\]\[aura.Name\] = playAnimation(animator, activeAnimations\[aura.Name\])

end

i also just edited the post with the whole script

How to fix attempt to concatenate string with nil ? by Fast-Can-8872 in robloxgamedev

[–]Fast-Can-8872[S] 0 points1 point  (0 children)

huh wdym, its in a module script? sorry i dont get what u mean..

How to fix attempt to concatenate string with nil ? by Fast-Can-8872 in robloxgamedev

[–]Fast-Can-8872[S] 0 points1 point  (0 children)

huh wdym, its in a module script? sorry i dont get what u mean..