HHLExploits

Sirh

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