Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How can I fix this walking animation?

Asked by
Bluseph 35
8 years ago

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

Log in to vote
3
Answered by
Azmidium 388 Moderation Voter
8 years ago

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

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. Bluseph 35 — 8y
0
It must be your animation then. Have you viewed the animation in Roblox's Animation Editor? Azmidium 388 — 8y
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. Bluseph 35 — 8y
0
Well no, it depends which animation you set in the script. Did you export the right animation, and put the right id? Azmidium 388 — 8y
View all comments (5 more)
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 Bluseph 35 — 8y
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. Azmidium 388 — 8y
0
It's okay :) Also that'd be great if you could, thank you very much! Bluseph 35 — 8y
0
Actually re-reading your script, you don't need line 3 Azmidium 388 — 8y
0
Took it out but still no luck Bluseph 35 — 8y
Ad
Log in to vote
0
Answered by
Hero_ic 502 Moderation Voter
8 years ago

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

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. Bluseph 35 — 8y

Answer this question