Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How can I fix this walking animation?

Basically, when aiming with a gun in first person and walking, your arms move slightly up due to the 'new' Roblox walking animation, and ends up blocking the gun. So I made it so it uses the old Roblox walking animation, and it fixes the aiming, but my legs occasionally won't move at all. Am I using the wrong old walking animation ID or is this script wrong? I used this to replace the idle animation which worked but am not sure why it won't fix the walking. I only walk normally for about a second then all my limbs freeze and don't move while my character is moving. I just sort of slide.

game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
	while not player.Character do wait() end
	local character = player.Character
	local animateScript = character.Animate
	animateScript.walk.WalkAnim.AnimationId = 'http://www.roblox.com/asset/?id=161210451'
end)
end)

2 answers

This error can either be caused by the animation, or the fact that your gun you use may change the animation. The script isn't wrong, and the animation id is not wrong, but your issue is probably what I said above. I wouldn't be able to answer this question confidentaly since I don't even know what the gun does upon using it.

EDIT: You don't need line 3, because that event fires when the player loads.

I hope this helped!

Sincerely, jmanrock123

9 comments

0

Well I also tested it without the gun, on a completely blank baseplate and even with no tools equipped it still does the same thing sadly.

0

It must be your animation then. Have you viewed the animation in Roblox's Animation Editor?

0

Yes, it's a default Roblox animation for 2013 walking. I viewed it in the Animation Editor and played it and it plays how it did in 2013, with the arms and legs moving and the torso not moving from side to side. However, there was another animation I ran which is Roblox's 'running' animation which did make the torso and arms tilt and I removed it, yet it didn't fix the issue unfortunately.

0

Well no, it depends which animation you set in the script. Did you export the right animation, and put the right id?

0

Yeah in the script I experimented a lot with removing the walking/running and vice versa and trying this with other animations too to see if anything happened. Also yes I did

0

Well sorry that I can't help you much further since my knowledge reached its point on animations. I might contact KiHeros to answer this when I next talk to him. He is my animation guy lol.

0

It's okay :) Also that'd be great if you could, thank you very much!

0

Actually re-reading your script, you don't need line 3

0

Took it out but still no luck

Use a local script like this in starterpack

--First we get the player 

local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:wait() --we must wait for character for this to work online
repeat wait() until character 

local animate = character.Animate -- get the animate 

animate.walk.WalkAnim.AnimationId = "rbxassetid://Your id numbers here"

this should work perfectly hope I helped :D ~KIHeros

1 comment

0

Sadly it didn't work. I did as you instructed but I still had the same issue where I'd walk how I want for about 2-3 seconds, then my arms and legs just stop moving completely.

This discussion is preserved as it was. New answers, comments, and votes are closed.