How do I change the default animations?

I tried the tutorial on the roblox wiki but it didn’t work at all.

I tried copying the animation script and changing the code inside the script as well as the properties which were children of the script; but it ended up just giving my character no walk/run animation.

I followed the link of the wiki that said there is sometimes a problem where the animation is played before you set it and tried doing that solution but it still didn’t work.

I have no idea what else to do so any help would be greatly appreciated.

Player.CharacterAdded:Connect(function(Character)
	repeat wait() until Player.Character
	for i, v in pairs(Character.Humanoid:GetPlayingAnimationTracks()) do
		v:Stop(0)
	end
	local AnimateScript = Character:WaitForChild("Animate")
	AnimateScript.run.Animation1.AnimationId = "rbxassetid://658830056"
	AnimateScript.walk.Animation1.AnimationId = "rbxassetid://658830056"
end)

That’s the code I used.

2 Likes

the animations are inside the script itself
so you need to copy the animate script and paste it in startercharacterscripts with the custom animations you have.

1 Like

Sorry if I wasn’t clear. I did that as well as change the ID’s in the code.

you checked if the id’s actualy changed?

Yes, when I changed the ID’s for the animations inside the script and inside the code I made sure the ID’s were correct.

Why are you using a script if you have already changed the ID’s with-in the code? Just change the children

I tried both and neither worked which is why I made this post.

Walking and Running tend to be extremely awkward in this method, also make sure your animations have been approved and that you own the animations.

1 Like

Oh, that may be the problem. I was trying to use Roblox’s Ninja animation.

How would I get around this or would I have to make my own animations?

alright i think you need to make your own script for this, Running is never used in roblox animations, only walking

1 Like

Animations won’t load if they aren’t in your inventory, as @DutchDeveloper said, you may need to make your own script.

I changed both the walk and running animation (sorry, didn’t think to say).

If you have bought the package then it should work, but I’m not entirely sure…

Well, I’d love to be a ninja in all the games I play so even if it doesn’t work when I buy it; still a win!

Nope, that didn’t work.

@Oryxide If you own BTR Roblox Chrome Extension, you can download animations made by Roblox. Not sure if I’m allowed to link it but for the purpose of your post I will. If I’m told other wise I’ll remove this post.

BTR: BTRoblox - Making Roblox Better - Chrome Web Store

Tutorial: When you view the package with BTR installed you should see this (if not play around with settings)

Once you click the one you would like, press this button:

Once you press the button, it will install a roblox model file which you can insert into your place. Simply spawn in an animation dummy and open the editor, select the dummy then exit. Then drag what you imported into SavedAnims and rename it to Climb (run, walk, etc) and go back into the editor and go into:
File > Load > Run (or whatever you called it) and press confirm. Then simply export the animation to Roblox web! Then simply use the normal animation script and just put in your new ID’s!

Hope this helps because this took me 10 mins to write lol

3 Likes

Did this solve the issue?

It should work, I’ve used this many times before.

1 Like

Sorry! Testing it now. ;p

When I click load it doesn’t do anything. :^(

1 Like