local animation = script:WaitForChild("Animation") local humanoid = script.Parent:WaitForChild("Humanoid")
local AnimPlay = humanoid:LoadAnimation(animation)
AnimPlay:Play()
I tried different animations, so i think the problem lays in the script.
local Animation = Instance.new('Animation') local AnimTrack = nil function LOAD_ANIM(id) Animation.AnimationId = id AnimTrack = script.Parent.Humanoid:LoadAnimation(Animation) AnimTrack:Play() end