Basically, I want it so that an animation plays when the player clicks the part. This is my code:
local s = script.Parent local animation = s.Eating_anim local Player = game:GetService("Players").LocalPlayer local animTrack = Player.Character.Humanoid:LoadAnimation(animation) s.ClickDetector.MouseClick:connect(function() animTrack:Play() end)
I currently do not know what the error is, and no error was printed out. I am using a LocalScript. Anyone help please?