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)