Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Idle = not Idle
- if not Idle then
- return
- end
- local DISTANCE = 5
- local px, py, pz = getPlayerPos()
- local function dist(a, b, x, y)
- local m, n = x-a, y-b
- return math.sqrt( m^2 + n^2 )
- end
- log("&7Idler On")
- while Idle do
- right( -1 )
- while Idle do
- local x, y, z = getPlayerPos()
- if dist( px, pz, x, z ) > DISTANCE then
- break
- end
- end
- right( 0 )
- if not Idle then break end
- left( -1 )
- while Idle do
- local x, y, z = getPlayerPos()
- if dist( px, pz, x, z ) < .1 then
- break
- end
- end
- left( 0 )
- end
- log("&7Idler Off")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement