Hello so i am trying to do this script ~~~~~~~~~~~~~~~~~
local brick = script.Parent
local debounce = false
function onTouch(plr)
if not debounce then
local hum = game.Players:GetPlayerFromCharacter(plr.Parent)
local humanoid = plr.Parent:FindFirstChild("Humanoid")
local anim_load = humanoid:LoadAnimation(script.Parent.Animation)
local current = anim_load
current:Play()
debounce = true
end
wait(3)
debounce = false
end
brick.Touched:connect(onTouch)**** So anyways the script wont work, and the script is in a part and when i touch it i want a animation plays. Please reply

1 comment
Is this a local script or a normal script?