Advertisement
tyridge77

Untitled

Aug 24th, 2013
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.53 KB | None | 0 0
  1. local step = game:GetService("RunService").Stepped:connect(function()
  2.     local pos = torso.Position
  3.     local offvel = torso.Velocity*1/15
  4.     local hit,ray = workspace:FindPartOnRay(Ray_new(pos+offvel,Vector3_new(0,-3.1,0)),char)
  5.     if hit and soundbase[hit.Name] then
  6.         FootStep = hit.Name
  7.     end
  8.     local moving = math_abs(torso["Right Shoulder"].CurrentAngle-torso["Right Shoulder"].DesiredAngle) > .1
  9.     if tick()-laststep > Speed_Render and torso.Velocity.magnitude > 5 and hit and moving then
  10.         laststep = tick()
  11.         WalkSound()
  12.     end
  13. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement