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

This works, but the arms are in the air. How do I make the arms still?

Asked by 6 years ago

game.Players.LocalPlayer.Character.Humanoid.Running:connect(function(speed) if speed >.1 then walking = true else walking = false
end end)

RS:connect(function()
if walking then local speed = Character.Humanoid.WalkSpeed/10

        Right_Weld.C0 = Right_Weld.C0:lerp(
         CFrame.new(

                0.01 * math.sin(tick() * (2 * speed)),
                0.03 * math.cos(tick() * (4 * speed)),
                0

            )*
            CFrame.Angles(

                0,
                0,
                -.02 * math.sin(tick() * (2 * speed))

            )
        ,.5) 

        Right_Weld.C0 = Right_Weld.C0:lerp(
         CFrame.new(

                0.03 * math.sin(tick() * (2 * speed)),
                0.03 * math.cos(tick() * (4 * speed)),
                0

            )*
            CFrame.Angles(

                0,
                0,
                -.02 * math.sin(tick() * (2 * speed))

            )
        ,.5) 

else

        Right_Weld.C0 = Right_Weld.C0:lerp(CFrame.new(),.1)
        Right_Weld.C0 = Right_Weld.C0:lerp(CFrame.new(),.1)

end end)

Answer this question