Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Animations do not work inside of tools at all?

I have watched multiple videos and read multiple articles on how to put animations into tools, but nothing I ever use works, can anyone help me please? Here is a local script I have inside a tool:

script.Parent.Activated:Connect(function()
	local player = game.Players.LocalPlayer
	local animation = script.Parent.Animation --assuming the animation is inside the tool
	local animationid = ("rbxassetid://"..5266726740)
	animation.AnimationId = animationid
	local Track = player.Character:FindFirstChild("Humanoid"):LoadAnimation(animation)
	Track:Play()
end)

4 comments

0

Why don't you make a variable for your humanoid?

0

Maybe you have to replace FindFirstChild With WaitForChild, that's what I always do when referencing a Humanoid, I don't know if that'll help though

0

I put WaitForChild, but still does nothing

0

What are you using? Like what is your tool?

2 answers

Are there any errors on the Output when you run your script? If yes, maybe you didn't set your animation priority to action?

3 comments

0

There are no errors, it just doesn't play the animation

0

Then maybe you didn't set your animation priority to action or movement?

0

Yes that is probably the problem with it.

Hello, I'm not sure, but I think your mistake isn't script, I think it's animations.

When you done ur animation you need to set animation priority

When I do tools, I always set Action, but sometimes movement helps also

Hope I helped

This discussion is preserved as it was. New answers, comments, and votes are closed.