EekPlayz09
(PVP_ImUnclePeteInBed)
1
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.
EekPlayz09
(PVP_ImUnclePeteInBed)
3
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
EekPlayz09
(PVP_ImUnclePeteInBed)
5
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
EekPlayz09
(PVP_ImUnclePeteInBed)
7
yes i put my animation id in animation.animationid = āā¦ā
By any chance, are you receiving any errors in output? like, sanitized error?
1 Like
EekPlayz09
(PVP_ImUnclePeteInBed)
9
nope their are no errors in the output
1 Like
MEsAv2
(MVVZ)
10
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
EekPlayz09
(PVP_ImUnclePeteInBed)
11
im not using that im using rbxassetid://14709739694
1 Like
KultDeeri
(Kult)
12
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.
EekPlayz09
(PVP_ImUnclePeteInBed)
14
such a stupid mistake now i see it but thanks!
2 Likes
system
(system)
Closed
15
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.