Idle Animation not showing properly to Server

Hi, I have a idle animation for my watering can tool. And whenever it’s equipped the item looks perfectly like this:

Other players don’t actually see the same animation, just a normal arm extended.

Does anyone know how to fix this? I’ve already searched it, and I’m quite positive that you set animations by the client. But not sure tbh, help appreciated.

function equip()
local humanoid = character:WaitForChild("Humanoid")
local animator = humanoid:WaitForChild("Animator")
local Animation = Instance.new("Animation")
Animation.AnimationId = "rbxassetid://000000000000" -- asset id
local AnimationPlay = animator:LoadAnimation(Animation)
AnimationPlay:Play()
end
local tool = -- tool
tool.Equipped:Connect(equip)

You can find the devhub articles here: Tool | Roblox Creator Documentation & Using Animations | Roblox Creator Documentation.

Umm, I’m not sure you understand. The animation already works, I already have that. But it just doesn’t show to the server…

Oh right… where is your script located? The example shown will play an animation each time the tool is equipped by the player. Is it like yours?

I need to see your script.

local LocalPlayer = game:GetService("Players").LocalPlayer
local Humanoid = LocalPlayer.Character.Humanoid

local Tool = script.Parent.Parent
local WaterEffect = Tool.Handle.Spout.WaterEffect

local IdleAnimation = Instance.new("Animation")
IdleAnimation.AnimationId = "http://www.roblox.com/Asset?ID=7217131976"
IdleAnimation.Name = "WateringCanIdle"
local IdleTrack

Tool.Equipped:Connect(function()
	IdleTrack = Humanoid:LoadAnimation(IdleAnimation)
	IdleTrack.Priority = Enum.AnimationPriority.Action
	IdleTrack.Looped = true
	IdleTrack:Play()
end)
Tool.Unequipped:Connect(function()
	if IdleTrack then
		IdleTrack:Stop()
	end
end)

The peak of simplicity.

its probably just running from a LocalScript which is only going locally thus the server cannot see it (it’s client sided??)

You’re setting the priority of the AnimationTrack locally. To get past this, export the animation with your desired priority instead of setting it in a LocalScript. You could also just do this on a regular Script so the priority is set correctly, though just exporting it with your set priority prevents a lot of hassle.

1 Like