SHARE
TWEET

Sirh

HHLExploits Sep 26th, 2019 23 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top