this is a script, where f the player touches it, the player will get the animation.
The animation plays until it is over, and if you jump/fall/move it will still play
THIS IS THE SCRIPT:
local Anim = script:WaitForChild("Animation") local debounce = false
script.Parent.Touched:Connect(function(hit) if (not debounce) and hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Humanoid:FindFirstChild("Animator") and hit.Parent:FindFirstChild("HumanoidRootPart") then debounce = true local track = hit.Parent.Humanoid.Animator:LoadAnimation(Anim) track:Play() print "working"
end
end)
How do i make (or edit) a script that if a player touches a brick, the animation will immediately stop
Thx --theroofypidgeot