Advertisement
InfinateSpectre

[aimdot] LF AIMBOT GUI

Oct 6th, 2019
901
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 8.86 KB | None | 0 0
  1. local LF_AIMBOT_GUI = Instance.new("ScreenGui")
  2. local Frame = Instance.new("Frame")
  3. local PlrToAimAt = Instance.new("TextBox")
  4. local StartAiming = Instance.new("TextButton")
  5. local StopAiming = Instance.new("TextButton")
  6. local Border1 = Instance.new("Frame")
  7. local Border2 = Instance.new("Frame")
  8. local Border3 = Instance.new("Frame")
  9. local Border4 = Instance.new("Frame")
  10. local FixCamera = Instance.new("TextButton")
  11. local AimHere = Instance.new("ImageLabel")
  12. --Properties:
  13. LF_AIMBOT_GUI.Name = "LF_AIMBOT_GUI"
  14. LF_AIMBOT_GUI.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  15. LF_AIMBOT_GUI.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  16.  
  17. Frame.Parent = LF_AIMBOT_GUI
  18. Frame.Active = true
  19. Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  20. Frame.BackgroundTransparency = 0.69999998807907
  21. Frame.BorderSizePixel = 5
  22. Frame.Position = UDim2.new(0.146822929, 0, 0.658002734, 0)
  23. Frame.Selectable = true
  24. Frame.Size = UDim2.new(0, 233, 0, 132)
  25.  
  26. PlrToAimAt.Name = "PlrToAimAt"
  27. PlrToAimAt.Parent = Frame
  28. PlrToAimAt.BackgroundColor3 = Color3.new(0.568627, 0.568627, 0.568627)
  29. PlrToAimAt.BackgroundTransparency = 0.30000001192093
  30. PlrToAimAt.Position = UDim2.new(0.0666555613, 0, 0.0599999987, 0)
  31. PlrToAimAt.Size = UDim2.new(0, 200, 0, 42)
  32. PlrToAimAt.Font = Enum.Font.SourceSans
  33. PlrToAimAt.Text = "PlayerName"
  34. PlrToAimAt.TextColor3 = Color3.new(0, 0, 0)
  35. PlrToAimAt.TextSize = 14
  36.  
  37. StartAiming.Name = "StartAiming"
  38. StartAiming.Parent = Frame
  39. StartAiming.BackgroundColor3 = Color3.new(0, 0, 0)
  40. StartAiming.Position = UDim2.new(0, 16, 0, 48)
  41. StartAiming.Size = UDim2.new(0, 200, 0, 31)
  42. StartAiming.Font = Enum.Font.SourceSans
  43. StartAiming.Text = "Turn Aimbot ON"
  44. StartAiming.TextColor3 = Color3.new(0, 1, 1)
  45. StartAiming.TextSize = 14
  46.  
  47. StopAiming.Name = "StopAiming"
  48. StopAiming.Parent = Frame
  49. StopAiming.BackgroundColor3 = Color3.new(0, 0, 0)
  50. StopAiming.Position = UDim2.new(0, 16, 0, 90)
  51. StopAiming.Size = UDim2.new(0, 90, 0, 29)
  52. StopAiming.Font = Enum.Font.SourceSans
  53. StopAiming.Text = "Turn Aimbot OFF"
  54. StopAiming.TextColor3 = Color3.new(0, 1, 1)
  55. StopAiming.TextSize = 14
  56.  
  57. Border1.Name = "Border1"
  58. Border1.Parent = Frame
  59. Border1.BackgroundColor3 = Color3.new(1, 1, 1)
  60. Border1.BorderSizePixel = 0
  61. Border1.Position = UDim2.new(0, -6, 0, 0)
  62. Border1.Size = UDim2.new(0, 6, 0, 132)
  63.  
  64. Border2.Name = "Border2"
  65. Border2.Parent = Frame
  66. Border2.BackgroundColor3 = Color3.new(1, 1, 1)
  67. Border2.BorderSizePixel = 0
  68. Border2.Position = UDim2.new(0, 233, 0, 0)
  69. Border2.Size = UDim2.new(0, 6, 0, 132)
  70.  
  71. Border3.Name = "Border3"
  72. Border3.Parent = Frame
  73. Border3.BackgroundColor3 = Color3.new(1, 1, 1)
  74. Border3.BorderSizePixel = 0
  75. Border3.Position = UDim2.new(0, -6, 0, -6)
  76. Border3.Size = UDim2.new(0, 245, 0, 6)
  77.  
  78. Border4.Name = "Border4"
  79. Border4.Parent = Frame
  80. Border4.BackgroundColor3 = Color3.new(1, 1, 1)
  81. Border4.BorderSizePixel = 0
  82. Border4.Position = UDim2.new(0, -6, 0, 132)
  83. Border4.Size = UDim2.new(0, 245, 0, 6)
  84.  
  85. FixCamera.Name = "FixCamera"
  86. FixCamera.Parent = Frame
  87. FixCamera.BackgroundColor3 = Color3.new(0, 0, 0)
  88. FixCamera.BorderSizePixel = 0
  89. FixCamera.Position = UDim2.new(0, 126, 0, 90)
  90. FixCamera.Size = UDim2.new(0, 90, 0, 29)
  91. FixCamera.Font = Enum.Font.SourceSans
  92. FixCamera.Text = "Fix Camera"
  93. FixCamera.TextColor3 = Color3.new(0, 1, 1)
  94. FixCamera.TextSize = 14
  95.  
  96. AimHere.Name = "AimHere"
  97. AimHere.Parent = LF_AIMBOT_GUI
  98. AimHere.Active = true
  99. AimHere.BackgroundColor3 = Color3.new(1, 1, 1)
  100. AimHere.BackgroundTransparency = 1
  101. AimHere.Position = UDim2.new(0.449105442, 0, 0.3871409, 0)
  102. AimHere.Selectable = true
  103. AimHere.Size = UDim2.new(0, 164, 0, 164)
  104. AimHere.Visible = false
  105. AimHere.Image = "http://www.roblox.com/asset/?id=18006519"
  106. AimHere.ImageTransparency = 0.5
  107. -- Scripts:
  108. function SCRIPT_HNTA77_FAKESCRIPT() -- StartAiming.Theme1
  109.     local script = Instance.new('LocalScript')
  110.     script.Parent = StartAiming
  111.     local Text = script.Parent
  112.    
  113.     local colorsToChooseFrom = {
  114.         Color3.new(255,0,0),   --RED
  115.         Color3.new(255,165,0), --ORANGE
  116.         Color3.new(255,255,0), --YELLOW
  117.         Color3.new(0,255,0),   --GREEN
  118.         Color3.new(0,0,255),   --BLUE
  119.         Color3.new(255,0,255)  --PURPLE
  120.     }
  121.    
  122.     while true do
  123.         for i,v in pairs(colorsToChooseFrom) do
  124.             Text.TextColor3 = v
  125.             wait(0.3)
  126.         end
  127.     end
  128.  
  129. end
  130. coroutine.resume(coroutine.create(SCRIPT_HNTA77_FAKESCRIPT))
  131. function SCRIPT_BAJX80_FAKESCRIPT() -- StopAiming.Theme2
  132.     local script = Instance.new('LocalScript')
  133.     script.Parent = StopAiming
  134.     while wait() do
  135.         script.Parent.TextColor3 = script.Parent.Parent.StartAiming.TextColor3
  136.     end
  137.  
  138. end
  139. coroutine.resume(coroutine.create(SCRIPT_BAJX80_FAKESCRIPT))
  140. function SCRIPT_ZZGG80_FAKESCRIPT() -- Frame.Theme
  141.     local script = Instance.new('LocalScript')
  142.     script.Parent = Frame
  143.     local border1 = script.Parent.Border1
  144.     local border2 = script.Parent.Border2
  145.     local border3 = script.Parent.Border3
  146.     local border4 = script.Parent.Border4
  147.    
  148.    
  149.     while wait() do
  150.         border1.BackgroundColor3 = script.Parent.StartAiming.TextColor3
  151.         border2.BackgroundColor3 = script.Parent.StartAiming.TextColor3
  152.         border3.BackgroundColor3 = script.Parent.StartAiming.TextColor3
  153.         border4.BackgroundColor3 = script.Parent.StartAiming.TextColor3
  154.     end
  155.  
  156. end
  157. coroutine.resume(coroutine.create(SCRIPT_ZZGG80_FAKESCRIPT))
  158. function SCRIPT_LBOG65_FAKESCRIPT() -- FixCamera.Theme3
  159.     local script = Instance.new('LocalScript')
  160.     script.Parent = FixCamera
  161.     while wait() do
  162.         script.Parent.TextColor3 = script.Parent.Parent.StartAiming.TextColor3
  163.     end
  164.  
  165. end
  166. coroutine.resume(coroutine.create(SCRIPT_LBOG65_FAKESCRIPT))
  167. function SCRIPT_LGUV67_FAKESCRIPT() -- LF_AIMBOT_GUI.LocalScript
  168.     local script = Instance.new('LocalScript')
  169.     script.Parent = LF_AIMBOT_GUI
  170.     local GUI = script.Parent.Frame
  171.     local plrToAimAtButton = script.Parent.Frame.PlrToAimAt
  172.     local startButton = script.Parent.Frame.StartAiming
  173.     local stopButton = script.Parent.Frame.StopAiming
  174.     local fixCamButton = script.Parent.Frame.FixCamera
  175.    
  176.     GUI.Draggable = true
  177.     GUI.Selectable = true
  178.     GUI.Active = true
  179.    
  180.     startButton.MouseButton1Click:Connect(function()
  181.     --//
  182.    
  183.    
  184.             script.Parent.AimHere.Visible = true
  185.             game.Players.LocalPlayer.Character.Transparency = 0.8
  186.            
  187.             local username = plrToAimAtButton.Text --Put the username of the player you want to throw to
  188.            
  189.             local CC = game.workspace.CurrentCamera
  190.             local AimAt = game.Players[username].Character.HumanoidRootPart
  191.            
  192.             CC.CameraType = Enum.CameraType.Scriptable
  193.            
  194.             wait(0.1)
  195.            
  196.             local fixedCam = false
  197.            
  198.             while wait() do
  199.                 if fixedCam == false then
  200.                     local player = game.Players.LocalPlayer
  201.                     if player.Character and player.Character:FindFirstChild("Humanoid") then
  202.                         local cam1 = workspace.CurrentCamera
  203.                         cam1.CameraSubject = player.Character.Humanoid
  204.                         cam1.CameraType = "Custom"
  205.                     end
  206.                     fixedCam = true
  207.                 elseif fixedCam == true then
  208.                     CC.CoordinateFrame = CFrame.new(CC.CoordinateFrame.p, AimAt.CFrame.p)
  209.                 end
  210.             end
  211.    
  212.    
  213.    
  214.     --//
  215.     end)
  216.    
  217.     stopButton.MouseButton1Click:Connect(function()
  218.         game.Players.LocalPlayer.Character.Transparency = 0
  219.         script.Parent.AimHere.Visible = false
  220.         local cam = game.Workspace.CurrentCamera
  221.         cam:Destroy()
  222.         wait(0.1)
  223.         cam.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
  224.         cam.CameraType = "Custom"
  225.        
  226.         wait()
  227.        
  228.         local player = game.Players.LocalPlayer
  229.         if player.Character and player.Character:FindFirstChild("Humanoid") then
  230.             local cam1 = workspace.CurrentCamera
  231.             cam1.CameraSubject = player.Character.Humanoid
  232.             cam1.CameraType = "Custom"
  233.         end
  234.     end)
  235.    
  236.     fixCamButton.MouseButton1Click:Connect(function()
  237.             game.Players.LocalPlayer.Character.Transparency = 0
  238.             script.Parent.AimHere.Visible = false
  239.             local player = game.Players.LocalPlayer
  240.             if player.Character and player.Character:FindFirstChild("Humanoid") then
  241.                 local cam1 = workspace.CurrentCamera
  242.                 cam1.CameraSubject = player.Character.Humanoid
  243.                 cam1.CameraType = "Custom"
  244.             end
  245.     end)
  246.  
  247. end
  248. coroutine.resume(coroutine.create(SCRIPT_LGUV67_FAKESCRIPT))
  249. function SCRIPT_HFXJ85_FAKESCRIPT() -- AimHere.LocalScript
  250.     local script = Instance.new('LocalScript')
  251.     script.Parent = AimHere
  252.     wait()
  253.     game.Workspace:WaitForChild(game.Players.LocalPlayer.Name)
  254.    
  255.     while wait() do
  256.         if game.Players:FindFirstChild(script.Parent.Parent.Frame.PlrToAimAt.Text) then
  257.             local aimDot = script.Parent
  258.             local plr = game.Players.LocalPlayer
  259.             local char = plr.Character
  260.             local rootPart = char.HumanoidRootPart
  261.             local username = script.Parent.Parent.Frame.PlrToAimAt.Text
  262.             local aimAt = game.Players[username].Character.HumanoidRootPart
  263.             local ratio = 50/500
  264.             local mag = (rootPart.position - aimAt.position).magnitude
  265.             local form = (mag*ratio)*12
  266.             local xS = aimDot.Position.X.Scale
  267.             local xO = aimDot.Position.X.Offset
  268.             local y = aimDot.Position.Y.Scale
  269.             aimDot.Position = UDim2.new(xS, xO, y, -form)
  270.             print(aimDot.Position)
  271.         elseif not script.Parent.Parent.Frame.PlrToAimAt.Text == "PlayerName" then
  272.             warn(script.Parent.Parent.Frame.PlrToAimAt.Text.." is not a valid player.")
  273.         end
  274.     end
  275.  
  276. end
  277. coroutine.resume(coroutine.create(SCRIPT_HFXJ85_FAKESCRIPT))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement