Im trying to make the script play an animation for the character like the sword swinging or something, i’ve tried some changes but nothing seemed to work. I know I am missing something but I can’t figure out what.
(no errors in Output)
The script.
script.Parent.Activated:Connect(function()
local animation = script.Parent.Animation
local humanoid = script.Parent.Parent.Humanoid
local animationtrack = humanoid:LoadAnimation(animation)
animationtrack:Play()
end)
Check to make sure the animation type and body type are both either r15 or r6 because it just simply won’t play if it’s rigged for the opposite character type.