Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local step = game:GetService("RunService").Stepped:connect(function()
- local pos = torso.Position
- local offvel = torso.Velocity*1/15
- local hit,ray = workspace:FindPartOnRay(Ray_new(pos+offvel,Vector3_new(0,-3.1,0)),char)
- if hit and soundbase[hit.Name] then
- FootStep = hit.Name
- end
- local moving = math_abs(torso["Right Shoulder"].CurrentAngle-torso["Right Shoulder"].DesiredAngle) > .1
- if tick()-laststep > Speed_Render and torso.Velocity.magnitude > 5 and hit and moving then
- laststep = tick()
- WalkSound()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement