Advertisement
davidxcgdr

FPS Aimbot

Nov 23rd, 2020
2,904
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.10 KB | None | 0 0
  1. --[[
  2.     // Aimbot script for FPS games.
  3.        This script can lead to a ban, so use at your own risk.
  4. --]]
  5.  
  6. local RunService = game:GetService("RunService")
  7. local UserInputService = game:GetService("UserInputService");
  8.  
  9. Run = "Run";
  10. Stop = "Stop";
  11. Render = "Resume";
  12.  
  13. _G[Stop] = function()
  14.     UserInputService.MouseBehavior = Enum.MouseBehavior.Default;
  15. end
  16.  
  17. _G[Render] = function()
  18.     UserInputService.MouseBehavior = Enum.MouseBehavior.LockCenter;
  19. end
  20.  
  21. _G[Run] = function(you, target)
  22.     if ((typeof(you) == "Instance") and (typeof(target) == "Instance")) then
  23.         if ((you:IsA("Player")) and (target:IsA("Player"))) then
  24.             local success, result = pcall(function()
  25.                 you.Character.HumanoidRootPart.CFrame = CFrame.new(you.Character.HumanoidRootPart.Position, target.Character.Head.Position)
  26.                 workspace.CurrentCamera.CFrame = CFrame.new(you.Character.HumanoidRootPart.Position, target.Character.Head.Position)
  27.             end)
  28.            
  29.             if success then
  30.                 _G[Render]();
  31.             else
  32.                 _G[Stop]();
  33.             end
  34.         else
  35.             return (false or 'not a player')
  36.         end
  37.     else
  38.         return (false or 'not a instance')
  39.     end
  40. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement