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

Why is this part can't dissapear, when I touch it?

Asked by 3 years ago

So what I want is basically is, when I touch the part it waits 0.4 seconds and then the part disappears... I've trying to figure it out, but I can't.

script.Parent.Touched:Connect(function(hit) 
    if hit and hit.Parent:FindFirstChild("Humanoid") then
            wait (0.4)
                script.Parent:Destroy()
    end
end)
0
Is there any errors? Itz_Dev9 0 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

I have had a dumb issue with this. did you put this inside of a script? i think it only works in a script. and, does it just not disappear at all?

Ad

Answer this question