So I'm making a game on roblox that is meant to play an animation when you touch a brick. It's about 8 seconds long, (idk if that helps) I've tried multiple things, but none work so far. Here is what I've made so far
function onTouched(hit) function debounce(deb) debounce(1) local human = hit.Parent:findFirstChild("Humanoid") if human then local anim = human:LoadAnimation(script.Parent.Animation) anim:Play() debounce(0) end end script.Parent.Touched:connect(onTouched)
Sorry for such a dumb question, but I need to out what problems I have with my script.
