Help with animation!

Hi, i’m trying to play a animation ( in the server side ) and im getting a lot of error:

local Event = game.ReplicatedStorage.Event
local AnimationId = 4599479445

Event.OnServerEvent:Connect(function(Player,Humanoid)
	local HasTool = Player.Backpack:FindFirstChild("Scuff") or Player.Character:FindFirstChild("Scuff")	

	if HasTool then
		local Anim = Instance.new("Animation")
		Anim.AnimationId = "rbxassetid://"..AnimationId
		Anim.Parent = Player
		local Track = Humanoid:LoadAnimation(Anim)
		Track:Play()
	end
end)

image

Did you create the Animation? Do note that you cannot use Animations made by others.

1 Like

First of all, the animations belongs to a group. So it will only work for the group-owned places.

If you’re a developer for that group and would like to make it usable on your own places, you have to reupload the animation on your profile.

Secondly, you’re encouraged to handle animations locally (via the client) and not the server. Read here:

1 Like