#animation on click
1 messages · Page 1 of 1 (latest)
this wont close but i figured it out
you have to get the humanoid's animator
if you wanna know more checkout their documention https://create.roblox.com/docs/animation/using#changing-a-default-animation
also I wouldn't do local Humanoid = Character:WaitForChild("Humanoid") I would just do local Humanoid = Character.Humanoid or even better local Humanoid = Character:FindFirstChildOfClass("Humanoid") as this allows you to grab the humanoid even if there is another part in the character with the name "Humanoid"
the reason why Character:WaitForChild("Humanoid") isn't the best is because it is or is close to impossible for there to be the character but not the humanoid, I just never think the code would run perfectly for there to be a character for it to get but not a humanoid within that character