Hello everyone,
So I need a way to disable all animations on the player character, including the default ones just temporarily, so I can enable them back later. Anyone konw how I can do this? Any help would be appreciated. Thanks.
Hello everyone,
So I need a way to disable all animations on the player character, including the default ones just temporarily, so I can enable them back later. Anyone konw how I can do this? Any help would be appreciated. Thanks.
Hi im new at devforum but whatcha mean with “all” like literally every animation? stop everything
stop really everything? you will be just idle but no animation at all?
and then turn these that was playing before on?
Yes, I want no animations to be playing at all. Even the default ones, including the idle animations like the head turning. I just want it to be stand still. Thanks.
i think you have seen this script
for i,v in pairs(script.Parent:FindFirstChildWhichIsA("Humanoid"):GetPlayingAnimationTracks()) do
if v then
-- ill fix this in a minute if i can
end
end
have you?
(( I CANNOT RESPOND 40 SECOND))
have you tried disabling animate aswell
Yes, I have. Unfortunately it doesn’t stop default animations from playing.
have you tried disabling animate before the stoptrack
??
and then enable the animate that it will return the default
I’ve done:
local animate = char.Animate
animate.Disabled = true
But it doesn’t do anything to stop the animations unfortunately.
ok this seems kinda hard
can you give us a video so that i can see if i can do something useful
I mean you can just try it yourself it’s only a couple lines or more of code. Just try to stop the default animations from playing using code. Right now I don’t have an answer.
I don’t know why something so simple can be so frustratingly difficult.
game.Players.LocalPlayer.Character:WaitForChild("Animate").Enabled = false
for i,v in pairs(game.Players.LocalPlayer.Character:FindFirstChildWhichIsA("Humanoid"):GetPlayingAnimationTracks()) do
if v.IsPlaying == true then -- or if v.IsPlaying == false if you want both
v:Stop()
local the = Instance.new("StringValue",script)
the.Value = v.Animation.AnimationId -- get rid of this if you want
end
end
-- to play back again
for i,v in pairs(script:GetDescendants()) do
if v:IsA("StringValue") then
if v.Value ~= "" and v.Value ~= " " then
local e = Instance.new("Animation")
e.AnimationId = v.Value
local anim = game.Players.LocalPlayer.Character:WaitForChild("Humanoid"):LoadAnimation(e)
anim:Play()
v:Destroy()
end
end
end
i have made this simple script let me test it rq
let me fix a few stuff
yeah it should work but i’d recommend not use my play back again just enable the animate instead
Thanks, I think it worked on the server side as well. Thanks for your help.
basically animation on client it also shows in the server, if the animation was made by you and the game was aswell made by you
Oh okay, thanks for the info! Everything is working well now.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.