Viewport wont play animation

How can I fix that error then.?

Check If inside the dummy Humanoid there is something called: Animator.
Then use this script:

local anim = Instance.new("Animation")
anim.AnimationId = "rbxassetid://14224225681"

script.Parent.MouseEnter:Connect(function()
	local humanoid = script.Parent.WorldModel.dummy:WaitForChild("Humanoid")

	local track = humanoid.Animator:LoadAnimation(anim)
	track.Looped = true
	track:Play()
end)
1 Like

thank you, I have had this problem for a long time I just never knew all i needed to do was to add animator

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.