Trying to override the default animations are not working on the character.
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(Player)
Player.CharacterAppearanceLoaded:Connect(function(Character)
local Humanoid = Character:WaitForChild("Humanoid", 60)
for _, PlayingTrack in ipairs(Humanoid:GetPlayingAnimationTracks()) do
PlayingTrack:Stop(0)
end
local AnimateScript = Character:WaitForChild("Animate", 60)
AnimateScript.run.RunAnim.AnimationId = "rbxassetid://656118852"
AnimateScript.walk.WalkAnim.AnimationId = "rbxassetid://656121766"
AnimateScript.jump.JumpAnim.AnimationId = "rbxassetid://5057749643"
AnimateScript.fall.FallAnim.AnimationId = "rbxassetid://5069155413"
end)
end)
1 Like
KinqAndi
(KinqAndi)
July 17, 2020, 2:31am
2
You don’t need to do it like this. Heres some steps to override the animations.
Press Play in Studio
Go to your character and copy the “Animate” script
Stop game and paste the script into StarterPlayer>PlayerCharacterScripts
expand that, and find the animation which you want to change
expand that one more time, and you can see the Animation and you can replace it with the AnimationId you want.
3 Likes
Wouldn’t this be doing literally what that script is.
Also the Animation Ids are set properly, when doing it the way I have done.
1 Like
Latelyz
(Latelyz)
July 17, 2020, 2:53am
4
Have you tried changing the animation’s priority?
1 Like
I will have the Animator do this as soon as he get’s back
KinqAndi
(KinqAndi)
July 17, 2020, 2:53am
6
Yeah it would since the Animate scripts uses a changed listener. But the way I explained it, is more efficient. And also make sure the animations are loading properly. To check this see if theres no errors on output window.
This happens to me too, what I do is put a local script in StarterCharacterScripts and change the animation IDs from there. For some reason that works there but not in a server script.
The only errors are from the 2 animations I know are broke and that’s happening in the Preload Async
KinqAndi
(KinqAndi)
July 17, 2020, 3:01am
9
Note that some animations won’t work when you are not the owner.
2 Likes
Even just trying to load them through a script?
1 Like
KinqAndi
(KinqAndi)
July 17, 2020, 3:52am
11
Yes
meeting 30 character limit
Made sure I’m the owner and it’s still not working
They’re just not playing.
Copying the whole Animate script, and changing the values directly in the script seemed to work.
1 Like
KinqAndi
(KinqAndi)
July 18, 2020, 4:18am
14
Yeah, so what I said on the first reply worked?
Incorrect…
You don’t need to do it like this. Heres some steps to override the animations.
Press Play in Studio
Go to your character and copy the “Animate” script
Stop game and paste the script into StarterPlayer>PlayerCharacterScripts
expand that, and find the animation which you want to change
expand that one more time, and you can see the Animation and you can replace it with the AnimationId you want.
You told me to change the animation Ids of the animations in the script children, not the script literally.
I had to change them in the directly in the animNames table in the script.
1 Like
KinqAndi
(KinqAndi)
July 18, 2020, 4:24am
16
Oh, you changed the values in the script?
Yes, that’s when it finally wanted to work.
1 Like
KinqAndi
(KinqAndi)
July 18, 2020, 4:46am
18
Ah, sorry. that always worked for me, just changing the AnimationId.