Why is this animation not playing?

So I made a tossing animation and whenever I activate a proximity prompt the animation does not play. There are not errors in the output, here is my script:

	local anim = Instance.new("Animation")
	local human = plr.Character.Humanoid
	anim.AnimationId = "https://www.roblox.com/library/6108825056/CoinToss?nl=true"
	local Toss = human:LoadAnimation(anim)
	Toss:Play()
	debris:AddItem(anim, 1)

You need to load the animation

Ths issue is with the AnimationId property you set. You’re putting in its library page, when you need its asset page. This can be done by placing rbxassetid:// right before your desired asset’s asset-ID.

In your case, you would want to do this:

anim.AnimationId = "rbxassetid://6108825056"
1 Like