Animation not playing

i am making an animation and this code is being ran


Tool.Activated:Connect(function()
	

	module:Mine("Rusty")
	
	
	local Animation = script.Animation
	local Humanoid = game.Players.LocalPlayer.Character.Humanoid
	local Mine = Humanoid:LoadAnimation(Animation)
	Mine:Play()
	
end)

but the animation isnt showing?

1 Like

Check the Animation Priority you are using when publishing.

Set it to Motion or Action and retry.

the animation priority is action

1 Like

Maybe something like:

Tool.Activated:Connect(function()


	module:Mine("Rusty")

	local Animation = Instance.new("Animation")
	Animation.AnimationId = "rbxassetid://2515090838"
	local Humanoid = game.Players.LocalPlayer.Character.Humanoid
	local Animator = Humanoid:WaitForChild("Animator")
	local Mine = animator:LoadAnimation(Animation)

	Mine:Play()

end)

Documentation: Using Animations | Documentation - Roblox Creator Hub

1 Like

i tried it but it still isnt playing?

1 Like

Did you replace the Animation.AnimationId with YOUR animation ID?

I posted the link to the documentation on using animations at the bottom of the post above.

1 Like

yes i put my animation id in animation.animationid = ā€œā€¦ā€

By any chance, are you receiving any errors in output? like, sanitized error?

1 Like

nope their are no errors in the output

1 Like

Are you sure you are the uploader of the animation?
The asset in question seem to be uploaded by someone else unless I’m doing something wrong.

1 Like

im not using that im using rbxassetid://14709739694

1 Like

Have you made sure that you are using the right body, ā€œR6, R15ā€ for the animation?

2 Likes

Go to the link I posted.

Copy their code to the clipboard.

Open a new Roblox baseplate, then paste their code into a script.

Use your animation ID and see if your animation will play using the documented sctipt.

That way you know if it is your animation or your scripting.

such a stupid mistake now i see it but thanks!

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.