Tool animation not working after cloned

I’m currently trying to clone a drink tool for a shop system.
The tool is supposed to be cloned over (which it does), and when clicked, will play the drinking animation.
Currently the animation does not play at all and there are no errors.
The tool is being cloned by a server script.

The line (in a local script):
game.ReplicatedStorage.ToolEvents.BlurEvent:FireServer()

The line in the server script:

game.ReplicatedStorage.ToolEvents.BlurEvent.OnServerEvent:Connect(function(player)
	if player.leaderstats1.Coins.Value >= 15 then
		player.leaderstats1.Coins.Value = player.leaderstats1.Coins.Value - 15
		game.ServerStorage.Tools.BlurBerry:Clone().Parent = player.StarterGear
		game.ServerStorage.Tools.BlurBerry:Clone().Parent = player.Backpack
	end
end)

The animation script:

script.Parent.Equipped:Connect(function(Mouse)
    Mouse.Button1Down:Connect(function()
        animation = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Parent.Animation)
        animation:Play()
    end)
end)

script.Parent.Unequipped:Connect(function()
        animation:Stop()
end)

The animation script is a local script

I’ve already tested without cloning, the animation seems to be working.
I have also tried with the animation being a normal script.

why dont you try loading up the animation before the equip so

local animation = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Parent.Animation)
script.Parent.Equipped:Connect(function(Mouse)
    Mouse.Button1Down:Connect(function()
        animation:Play()
    end)
end)

script.Parent.Unequipped:Connect(function()
        animation:Stop()
end)

First, leave the script like this:

local Player = game.Players.LocalPlayer
Char = Player.Character or Player.CharacterAdded:Wait()

local animation = Char:WaitForChild("Humanoid"):WaitForChild("Animator"):LoadAnimation(script.Parent.Animation)
script.Parent.Activated:Connect(function()	
	animation:Play()
end)
script.Parent.Unequipped:Connect(function()
	animation:Stop()
end)

Humanoid:LoadAnimation() is deprecated.
Second, what is the Priority of the animation? Is it in Action?

I tried using your script, doesn’t seem to have changed, the animation still doesn’t play

The script doesn’t seem to work either.
The priority of the animation is Action

1 Like

Seems to be fine one roblox app (not studio). Bug isn’t a major problem as long as it works in-game.

is it a group game ?

Oh yeah, appears to be so, my bad.
The animation was uploaded under another developer’s account.