Hello so basically when i anchor a players humanoid root part while they are playing their running animation they will become anchored but the animation wont freeze what i basically want to know is how can i anchor a player and freeze the animation they are playing but when i unanchor their animation will start playing again from the same position the animation was normally thanks!
humanoidRootPart.Anchored = true
runningAnimation:AdjustSpeed(0)
the problem with this is that im referring to roblox animations not “my own running animation” so i cant quite access them
Pretty sure you can get the playing animation tracks using Animator:GetPlayingAnimationTracks.
Sorry for late reply, i was on vacations i totally forgot about this thanks but i found one problem it wont stop new anims so like do i gotta do while wait() do or something so it automaticly adjusts their speed to 0?
anchor the entire character, including arms and legs.
yeah but doing that wont it stop the current anim that is playing?
it should if you anchor every part in the character (not just the humanoidrootpart), if i remember correctly.
local script – snip
local s, r, w = nil, nil, nil
local ActiveTracks = hum:GetPlayingAnimationTracks() -- print(ActiveTracks)
for _, v in pairs(ActiveTracks) do s = tostring(v)
if s == "walk" then w = v w:Stop() end
if s == "run" then r = v r:Stop() end
end
root.Anchored = true
well i forgot about this i was too dumb but what i did is anchor the character fully with for i, v in pairs so every part anchored
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.