Why animation doesn't work?[SOLVED]

I tried to make script that will play animation on player, it work on dummy but not on player.
Also i have this error: Cannot load the AnimationClipProvider Service.
It is basic script.
I searched in Google and in DevForum but i only found old method with humanoid.

local Players = game:GetService("Players")

local Animation = script.Animation

Players.PlayerAdded:Connect(function(Player)
	Player.CharacterAdded:Connect(function(Character)
		local Animator = Character:WaitForChild("Humanoid"):WaitForChild("Animator")
		local Track = Animator:LoadAnimation(Animation)--Error is here
		while true do
			wait(2.02)
			Track:Play()
			end
	end)
end)
3 Likes

Do you own the animation? Animations won’t work if you don’t own them unless they are owned by Roblox.

2 Likes

Yes, I am owner.

Liiiiiiiiiiiiiiimit

Why not play the animation in a LocalScript since any animation played on a Player’s character will be replicated to the server.

2 Likes

Thx, i was a little bit confused about player animations at first.

1 Like

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