Advertisement
Guest User

AIMBOT

a guest
Mar 30th, 2020
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. local ms = plrs.LocalPlayer:GetMouse()
  2. local nearest = function()
  3. local plr,dist = nil,5000
  4. for k,l in pairs(plrs:GetPlayers()) do
  5. local pos = l.Character:GetPrimaryPartCFrame().p
  6. local len = (ms.Hit.p - pos).Magnitude
  7. if len <= dist then
  8. plr = l
  9. dist = len
  10. end
  11. end
  12. return plr.Character:GetPrimaryPartCFrame().p
  13. end
  14. workspace.CurrentCamera.trash.ChildAdded:connect(function(c)
  15. c.CFrame = CFrame.new(nearest())
  16. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement