Alscara

Untitled

Dec 7th, 2015
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. Module.New('flw', function()
  2. local c = 0
  3. for _, player in pairs(Self.GetSpectators()) do
  4. if player:Name() == "Dimigey" then
  5. c = player
  6. end
  7. end
  8. local pos = Self.Position()
  9. if c ~= 0 then
  10. pos = c:Position()
  11. end
  12. if Self.DistanceFromPosition(pos.x, pos.y, pos.z) >= 3 then
  13. Targeting.Stop()
  14. else
  15. Targeting.Start()
  16. end
  17. end)
Advertisement
Add Comment
Please, Sign In to add comment