Im trying to play a anition when click on a part [ClicckDetector] but it dosen't work, any help??
code:
local click = script.Parent.ClickDetector local Sew = script.Parent local anim = script.Parent.Animation ----------------------------------------- click.MouseClick:Connect(function(playerWhoClicked) playerWhoClicked.Character.Humanoid:LoadAnimation(playerWhoClicked,3122381458) en
You need to play the animation using play()
local click = script.Parent.ClickDetector local Sew = script.Parent local anim = script.Parent.Animation ----------------------------------------- click.MouseClick:Connect(function(playerWhoClicked) Anim = playerWhoClicked.Character.Humanoid:LoadAnimation(playerWhoClicked,3122381458) Anim:Play() end