janus420

ishatmypants

Dec 13th, 2021
859
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. -- janus
  2.  
  3. -- README --
  4. -- By Default press P to toggle aimbot on and off, note u NEED to disable it before exiting the aimlab
  5. -- btw ur gonna get kicked for having a god tier score
  6.  
  7. -- Config --
  8.  
  9. local toggleKey = Enum.KeyCode.P -- replace letter keep capitalized
  10.  
  11. -- END of Config --
  12.  
  13. local Camera = workspace.CurrentCamera
  14. local runService = game:GetService("RunService")
  15. local toggled = false
  16. game:GetService("UserInputService").InputBegan:connect(function(inputObject, gameProcessedEvent)
  17. if inputObject.KeyCode == toggleKey then
  18. if (toggled) then
  19. toggled = false
  20. else
  21. toggled = true
  22. end
  23. end
  24. end)
  25. runService.Stepped:Connect(function()
  26. if (toggled) then
  27. local targ = game.Workspace:FindFirstChild("Target")
  28. Camera.CameraType = Enum.CameraType.Scriptable
  29. Camera.CFrame = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position, targ.Position)
  30. else
  31. Camera.CameraType = Enum.CameraType.Custom
  32. end
  33. end)
  34.  
Advertisement
Add Comment
Please, Sign In to add comment