- What do you want to achieve?
The animations need to stop.
- What is the issue?
The animations don’t stop.
- What solutions have you tried so far?
I tried it with the code from the wiki: Humanoid:GetPlayingAnimationTracks (roblox.com)
local Players = game:GetService("Players")
local localPlayer = Players.LocalPlayer
if not localPlayer.Character then
localPlayer.CharacterAdded:Wait()
end
local humanoid = localPlayer.Character:WaitForChild("Humanoid")
-- Get playing animations
local AnimationTracks = humanoid:GetPlayingAnimationTracks()
-- Stop all playing animations
for i, track in pairs (AnimationTracks) do
track:Stop()
end
Hello, what is your goal? Stoping annimation of the default roblox animation script? Why? For make your own animation script?
If you check the API doc you can see this.
GetPlayingAnimationTracks is Deprecated and if a think is deprecated it should not be used any more.
Hello, I didn’t see that. Thank you for that information.
I am making a pole where you can do pull-ups, but the Character moves around because the animations are playing. It just crashes the whole thing if the Animations are playing. That is the problem.
Ok, this is more easy to fix.
On the animation editor just change the priority of the animation.
Set priority to “Action”
It doesn’t work with Animations, because I am very bad at making these. It works with Velocity and Constraints.
Make this with animation is the best practice
But if you want make with Velocity and Constraints you can set the animation script to Disabled BaseScript | Roblox Creator Documentation for stop the default roblox animation script.