SHARE
TWEET

Roblox Aimbot (Used only for FPS/Shooter games)

PresidentIvan Feb 11th, 2019 (edited) 1,462 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --[[ PresidentIvan
  2. This is an aimbot script used only for Shooter/FPS games
  3. In order to toggle the script, press on the Left-Shift key in your keyboard, and then at the same time press on the Insert key.
  4. Enjoy! ]]--
  5.  
  6. local PlayerService = game:GetService("Players")
  7. local player = PlayerService.LocalPlayer
  8. local cam = workspace.CurrentCamera
  9. local Camera = {}
  10. local TrackHumanoid = false
  11. local enabled = false
  12. local sleight = false
  13. local UserInput = game:GetService("UserInputService")
  14.  
  15. if not gui then
  16.     gui = Instance.new('BillboardGui')
  17.     local frame = Instance.new('Frame', gui)
  18.    
  19.     gui.AlwaysOnTop = true
  20.     gui.LightInfluence = 0
  21.     gui.Size = UDim2.new(0, 100, 0, 100)
  22.     frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  23.     frame.BackgroundTransparency = .75
  24.     frame.Size = UDim2.new(1, 0, 1, 0)
  25.     frame.Rotation = 45
  26.     frame.BorderSizePixel = 0
  27. end;
  28.  
  29. function Camera:LockPlayer(p, isNPC)
  30.     if isNPC == true then
  31.         if p and p.Parent:IsA('Model') and p.Parent:FindFirstChild('Torso') then
  32.             local t = p.Parent.Torso.CFrame * Vector3.new(0, -0.25, 0);
  33.             cam.CFrame = CFrame.new(cam.Focus.p, t) * CFrame.new(0, 0, 0.5);
  34.             gui.Parent = p.Parent.Torso;
  35.         end;
  36.     else
  37.         if p and p.Character and p.Character:FindFirstChild('Torso') then
  38.             local t = p.Character.Torso.CFrame * Vector3.new(0, -0.25, 0);
  39.             cam.CFrame = CFrame.new(cam.Focus.p, t) * CFrame.new(0, 0, 0.5);
  40.             gui.Parent = p.Character.Torso;
  41.         end;
  42.     end;
  43. end;
  44.  
  45.  
  46. game:GetService("RunService").RenderStepped:connect(function()
  47. if enabled == true then
  48.     for _,v in pairs(PlayerService:GetChildren()) do
  49.         if v:IsA('Player') and v.Character then
  50.             if v.Character:FindFirstChildOfClass('Humanoid') and v.Character:FindFirstChildOfClass('Humanoid').Health > 0 then
  51.                 if v == player then
  52.                 else
  53.                     Camera:LockPlayer(v);
  54.                 end;
  55.             end;
  56.         end;
  57.     end;
  58.    
  59.     if TrackHumanoid == true then for _,v in pairs(workspace:GetDescendants()) do
  60.         if v.Parent:IsA('Model') and v.Parent:FindFirstChildOfClass('Humanoid') and v.Parent:FindFirstChildOfClass('Humanoid').Health > 0 then
  61.             if v.Parent.Name == player.Name then
  62.             else
  63.                 Camera:LockPlayer(v, true);
  64.             end;
  65.         end;
  66.     end;
  67.     end;
  68. elseif enabled == false then
  69.     if gui then
  70.         gui.Parent = nil;
  71.     end;
  72. end;
  73. end);
  74.  
  75. UserInput.InputBegan:connect(function(input)
  76.     if input.KeyCode == Enum.KeyCode.LeftShift then
  77.         sleight = not sleight;
  78.     end;
  79. end);
  80.  
  81. UserInput.InputEnded:connect(function(input)
  82.     if input.KeyCode == Enum.KeyCode.Insert and sleight == true then
  83.         enabled = not enabled;
  84.     end;
  85. 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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top