Animations doesn't work!

I have a button which if you press it transfers that info to the server using event funtion. Inside that server script I have some animations I want to put inside the players Animate script,

charEvent.OnServerEvent:Connect(function(Player, Info)
	if Info.Parent.Name == "Animation" then
		local Script = Player.Character:FindFirstChild("Animate")
		--for _, playingTracks in pairs(Player.Character.Humanoid:GetPlayingAnimationTracks()) do
		--	playingTracks:Stop(0)
		--end
		if Script then
			if Info.Value == "Stylish" then
				Script.jump.JumpAnim.AnimationId = "rbxassetid://619511974"
				Script.idle.Animation1.AnimationId = "rbxassetid://619511648"
				Script.idle.Animation2.AnimationId = "rbxassetid://619511648"
				Script.fall.FallAnim.AnimationId = "rbxassetid://619511417"
				Script.swim.Swim.AnimationId = "rbxassetid://619512450"
				Script.run.RunAnim.AnimationId = "rbxassetid://619512153"
				Script.climb.ClimbAnim.AnimationId = "rbxassetid://619509955"
				Script.walk.WalkAnim.AnimationId = "rbxassetid://619512767"
			elseif Info.Value == "Bubbly" then
				Script.jump.JumpAnim.AnimationId = "rbxassetid://1018553240"
				Script.idle.Animation1.AnimationId = "rbxassetid://1018553897"
				Script.idle.Animation2.AnimationId = "rbxassetid://1018553897"
				Script.fall.FallAnim.AnimationId = "rbxassetid://1018552770"
				Script.swim.Swim.AnimationId = "rbxassetid://1018554245"
				Script.run.RunAnim.AnimationId = "rbxassetid://1018548665"
				Script.climb.ClimbAnim.AnimationId = "rbxassetid://1018554668"
				Script.walk.WalkAnim.AnimationId = "rbxassetid://1018549681"
			elseif Info.Value == "Robot" then
				Script.jump.JumpAnim.AnimationId = "rbxassetid://619522088"
				Script.idle.Animation1.AnimationId = "rbxassetid://619521748"
				Script.idle.Animation2.AnimationId = "rbxassetid://619521748"
				Script.fall.FallAnim.AnimationId = "rbxassetid://619521521"
				Script.swim.Swim.AnimationId = "rbxassetid://619522642"
				Script.run.RunAnim.AnimationId = "rbxassetid://619522386"
				Script.climb.ClimbAnim.AnimationId = "rbxassetid://619521311"
				Script.walk.WalkAnim.AnimationId = "rbxassetid://619522849"
			elseif Info.Value == "Elder" then
				Script.jump.JumpAnim.AnimationId = "rbxassetid://892267917"
				Script.idle.Animation1.AnimationId = "rbxassetid://892268340"
				Script.idle.Animation2.AnimationId = "rbxassetid://892268340"
				Script.fall.FallAnim.AnimationId = "rbxassetid://892267521"
				Script.swim.Swim.AnimationId = "rbxassetid://892268710"
				Script.run.RunAnim.AnimationId = "rbxassetid://892265784"
				Script.climb.ClimbAnim.AnimationId = "rbxassetid://892269341"
				Script.walk.WalkAnim.AnimationId = "rbxassetid://892267099"
			elseif Info.Value == "Superhero" then
				Script.jump.JumpAnim.AnimationId = "rbxassetid://619528412"
				Script.idle.Animation1.AnimationId = "rbxassetid://619528125"
				Script.idle.Animation2.AnimationId = "rbxassetid://619528125"
				Script.fall.FallAnim.AnimationId = "rbxassetid://619527817"
				Script.swim.Swim.AnimationId = "rbxassetid://619529095"
				Script.run.RunAnim.AnimationId = "rbxassetid://619528716"
				Script.climb.ClimbAnim.AnimationId = "rbxassetid://619527470"
				Script.walk.WalkAnim.AnimationId = "rbxassetid://619529601"
			elseif Info.Value == "Vampire" then
				Script.jump.JumpAnim.AnimationId = "rbxassetid://1113742359"
				Script.idle.Animation1.AnimationId = "rbxassetid://1113742618"
				Script.idle.Animation2.AnimationId = "rbxassetid://1113742618"
				Script.fall.FallAnim.AnimationId = "rbxassetid://1113742092"
				Script.swim.Swim.AnimationId = "rbxassetid://1113742944"
				Script.run.RunAnim.AnimationId = "rbxassetid://1113740510"
				Script.climb.ClimbAnim.AnimationId = "rbxassetid://1113743239"
				Script.walk.WalkAnim.AnimationId = "rbxassetid://1113741192"
			end
		end
		return
	end
end

Unfortunately when doing this my character becomes still and doesn’t do any aminations. How can I fix this problem?

For example, use this animation bundle and help me with a better way to make animation load inside the character!

1 Like

They seem to just be the wrong asset IDs for the animations. You can find the asset IDs easier with a Chrome extension called BTRoblox, and it allows you to see a preview of the ‘Explorer’ on an item’s page.

https://gyazo.com/0ae392aa57feb5683642a814bd2fdcfb

As you can see in the gyazo above, the AnimationTrack’s ID for ‘Robot Idle’ is actually different in the explorer than it is in the script you’ve sent, so you’re gonna have to edit them all with the right IDs.

2 Likes
Script.jump.JumpAnim.AnimationId = "http://www.roblox.com/asset/?id=619511974"
				Script.idle.Animation1.AnimationId = "http://www.roblox.com/asset/?id=619511648"
				Script.idle.Animation2.AnimationId = "http://www.roblox.com/asset/?id=619511648"
				Script.fall.FallAnim.AnimationId = "http://www.roblox.com/asset/?id=619511417"
				Script.swim.Swim.AnimationId = "http://www.roblox.com/asset/?id=619512450"
				Script.run.RunAnim.AnimationId = "http://www.roblox.com/asset/?id=619512153"
				Script.climb.ClimbAnim.AnimationId = "http://www.roblox.com/asset/?id=619509955"
				Script.walk.WalkAnim.AnimationId = "http://www.roblox.com/asset/?id=619512767"

I tried this doesn’t work still :<

image
The jump animation has a weird name and it isn’t JumpAnim, you could try doing this for all JumpAnim portions.
Script.jump["!ID!"].AnimationId = ""

image
I got JumpAnim for me

The code doesnt break, the animation doesnt move… like a character without any animation is my problem

Right. My bad about the !ID! thing it was a glitch in my studio. However, it still doesn’t seem like you did the right IDs as both your idle animations are the same. If you use the IDs from the explorer gyazo i sent above you would have 2 different idle IDs

1 Like

I want it to be 1 idle animation I dont want 2 different ones. what should i do? just for checking Ill remove an animation and lets see if it works (nope same thing doesnt move)

Well this is weird. In my testing it only lets me change the animations if I have this setting set to ‘Player Choice’
image

I’m gonna do some more testing and see if I can find a way to do this without having Player Choice enabled

1 Like

image
I already have this on… why doesnt it work for me?

You can try it with these IDs and it should work with Player Choice enabled

Script.jump.JumpAnim.AnimationId = "http://www.roblox.com/asset/?id=616090535"
Script.idle.Animation1.AnimationId = "http://www.roblox.com/asset/?id=616088211"
Script.idle.Animation2.AnimationId = "http://www.roblox.com/asset/?id=616089559"
Script.fall.FallAnim.AnimationId = "http://www.roblox.com/asset/?id=616087089"
Script.swim.Swim.AnimationId = "http://www.roblox.com/asset/?id=616092998"
Script.run.RunAnim.AnimationId = "http://www.roblox.com/asset/?id=616095330"
Script.climb.ClimbAnim.AnimationId = "http://www.roblox.com/asset/?id=616086039"
Script.walk.WalkAnim.AnimationId = "http://www.roblox.com/asset/?id=616095330"

Robot anim IDs btw ^

1 Like

It works, you are right. then I guess its the animations problem or roblox locked them…

If it worked then yeah it’s just a problem with the anim IDs you had.

Just remember to use the WalkAnim ID for RunAnim too or you won’t have proper walking animations

1 Like

Yeah, ill keep this in mind. :heart: