I was wondering how I could make a rig or character go back to its default position with no animations. Stopping the animations wouldn’t work as it just stays in the last frame where it was stopped at. I want to reset it to a point as if there was no animate script at all.
No thats not my goal. I’m trying to reset the rig or character to the default position. To see what i mean delete the animate script instantly before any animations can start. This pose:
To reset the rig to it’s default position when the animation ends, you need to make sure the animation isn’t looped. Or like I said, using the Animation:Stop() will completely cancel out your currently playing animation, weather it’s looped or not.
local player = game:GetService("Workspace"):FindFirstChild(player.Name)
if player then
local humanoid = player:FindFirstChild("Humanoid")
if humanoid then
local animator = humanoid:FindFirstChild("Animator")
if animator then
local animations = animator:GetPlayingAnimationTracks()
for i = 1, #animations do
animations[i]:Stop()
end
end
end
end
end
the top line didnt come through, it was just a function definition