YANIS_EXPLOITS

Blox Saber auto play

Dec 4th, 2019
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. local cam = workspace.CurrentCamera
  2. cam.RobloxLocked = true
  3. local orgType = cam.CameraType
  4. local target
  5. local function UpdateTarget()
  6. local closest = nil
  7. for i,v in pairs(workspace.Client.Cubes:GetChildren()) do
  8. if v.Name == "Cube" then
  9. local vP = v.Position
  10. if closest == nil then
  11. closest = v
  12. else
  13. if (workspace.Client.CameraPos.Position-vP).magnitude < (workspace.Client.CameraPos.Position-closest.Position).magnitude then
  14. closest = v
  15. end
  16. end
  17. end
  18. end
  19. target = closest
  20. end
  21. while wait() do
  22. if game.Players.LocalPlayer.MapData.Playing.Value then
  23. UpdateTarget()
  24. pcall(function()
  25. local pos = Vector3.new(cam.CFrame.X,cam.CFrame.Y,cam.CFrame.Z)
  26. local lookAt = Vector3.new(target.Position.X,target.Position.Y,target.Position.Z)
  27. cam.CameraType = Enum.CameraType.Scriptable
  28. cam.CFrame = CFrame.new(pos,lookAt)
  29. end)
  30. else
  31. cam.CameraType = orgType
  32. end
  33. end
Add Comment
Please, Sign In to add comment