Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

SelectionBox and ClickDetectors not being removed?

Asked by
wackem 50
9 years ago

I came across another problem working with the code, no errors show though. I don't see any problem either.

Here's the code:

01local tool = script.Parent
02 
03local mychar
04local myhum
05local chosen = false
06 
07tool.Equipped:connect(function()
08    mychar = tool.Parent
09    myhum = mychar:WaitForChild("Humanoid")
10    myhum.WalkSpeed = 0
11    hold = myhum:LoadAnimation(tool:WaitForChild("Hold"))
12 
13    hold:Play()
14 
15    for _,part in pairs(workspace:GetChildren()) do
View all 40 lines...

1 answer

Log in to vote
0
Answered by
snow29 0
9 years ago

I'm pretty sure you need to set variables as you enter them or it will error... Check your output.

Ad

Answer this question