Advertisement
InfinateSpectre

LF AIMBOT GUI

Sep 2nd, 2019
21,354
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 9.77 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. --Properties:
  12. LF_AIMBOT_GUI.Name = "LF_AIMBOT_GUI"
  13. LF_AIMBOT_GUI.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  14. LF_AIMBOT_GUI.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  15.  
  16. Frame.Parent = LF_AIMBOT_GUI
  17. Frame.Active = true
  18. Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  19. Frame.BackgroundTransparency = 0.69999998807907
  20. Frame.BorderSizePixel = 5
  21. Frame.Position = UDim2.new(0.146822929, 0, 0.658002734, 0)
  22. Frame.Selectable = true
  23. Frame.Size = UDim2.new(0, 233, 0, 132)
  24.  
  25. PlrToAimAt.Name = "PlrToAimAt"
  26. PlrToAimAt.Parent = Frame
  27. PlrToAimAt.BackgroundColor3 = Color3.new(0.568627, 0.568627, 0.568627)
  28. PlrToAimAt.BackgroundTransparency = 0.30000001192093
  29. PlrToAimAt.Position = UDim2.new(0.0666555613, 0, 0.0599999987, 0)
  30. PlrToAimAt.Size = UDim2.new(0, 200, 0, 42)
  31. PlrToAimAt.Font = Enum.Font.SourceSans
  32. PlrToAimAt.Text = "PlayerName"
  33. PlrToAimAt.TextColor3 = Color3.new(0, 0, 0)
  34. PlrToAimAt.TextSize = 14
  35.  
  36. StartAiming.Name = "StartAiming"
  37. StartAiming.Parent = Frame
  38. StartAiming.BackgroundColor3 = Color3.new(0, 0, 0)
  39. StartAiming.Position = UDim2.new(0, 16, 0, 48)
  40. StartAiming.Size = UDim2.new(0, 200, 0, 31)
  41. StartAiming.Font = Enum.Font.SourceSans
  42. StartAiming.Text = "Turn Aimbot ON"
  43. StartAiming.TextColor3 = Color3.new(0, 1, 1)
  44. StartAiming.TextSize = 14
  45.  
  46. StopAiming.Name = "StopAiming"
  47. StopAiming.Parent = Frame
  48. StopAiming.BackgroundColor3 = Color3.new(0, 0, 0)
  49. StopAiming.Position = UDim2.new(0, 16, 0, 90)
  50. StopAiming.Size = UDim2.new(0, 90, 0, 29)
  51. StopAiming.Font = Enum.Font.SourceSans
  52. StopAiming.Text = "Turn Aimbot OFF"
  53. StopAiming.TextColor3 = Color3.new(0, 1, 1)
  54. StopAiming.TextSize = 14
  55.  
  56. Border1.Name = "Border1"
  57. Border1.Parent = Frame
  58. Border1.BackgroundColor3 = Color3.new(1, 1, 1)
  59. Border1.BorderSizePixel = 0
  60. Border1.Position = UDim2.new(0, -6, 0, 0)
  61. Border1.Size = UDim2.new(0, 6, 0, 132)
  62.  
  63. Border2.Name = "Border2"
  64. Border2.Parent = Frame
  65. Border2.BackgroundColor3 = Color3.new(1, 1, 1)
  66. Border2.BorderSizePixel = 0
  67. Border2.Position = UDim2.new(0, 233, 0, 0)
  68. Border2.Size = UDim2.new(0, 6, 0, 132)
  69.  
  70. Border3.Name = "Border3"
  71. Border3.Parent = Frame
  72. Border3.BackgroundColor3 = Color3.new(1, 1, 1)
  73. Border3.BorderSizePixel = 0
  74. Border3.Position = UDim2.new(0, -6, 0, -6)
  75. Border3.Size = UDim2.new(0, 245, 0, 6)
  76.  
  77. Border4.Name = "Border4"
  78. Border4.Parent = Frame
  79. Border4.BackgroundColor3 = Color3.new(1, 1, 1)
  80. Border4.BorderSizePixel = 0
  81. Border4.Position = UDim2.new(0, -6, 0, 132)
  82. Border4.Size = UDim2.new(0, 245, 0, 6)
  83.  
  84. FixCamera.Name = "FixCamera"
  85. FixCamera.Parent = Frame
  86. FixCamera.BackgroundColor3 = Color3.new(0, 0, 0)
  87. FixCamera.BorderSizePixel = 0
  88. FixCamera.Position = UDim2.new(0, 126, 0, 90)
  89. FixCamera.Size = UDim2.new(0, 90, 0, 29)
  90. FixCamera.Font = Enum.Font.SourceSans
  91. FixCamera.Text = "Fix Camera"
  92. FixCamera.TextColor3 = Color3.new(0, 1, 1)
  93. FixCamera.TextSize = 14
  94. -- Scripts:
  95. function SCRIPT_MSCI67_FAKESCRIPT() -- StartAiming.Theme1
  96.     local script = Instance.new('LocalScript')
  97.     script.Parent = StartAiming
  98.     local Text = script.Parent
  99.    
  100.     local colorsToChooseFrom = {
  101.         Color3.new(255,0,0),   --RED
  102.         Color3.new(255,165,0), --ORANGE
  103.         Color3.new(255,255,0), --YELLOW
  104.         Color3.new(0,255,0),   --GREEN
  105.         Color3.new(0,0,255),   --BLUE
  106.         Color3.new(255,0,255)  --PURPLE
  107.     }
  108.    
  109.     while true do
  110.         for i,v in pairs(colorsToChooseFrom) do
  111.             Text.TextColor3 = v
  112.             wait(0.3)
  113.         end
  114.     end
  115.  
  116. end
  117. coroutine.resume(coroutine.create(SCRIPT_MSCI67_FAKESCRIPT))
  118. function SCRIPT_BASJ81_FAKESCRIPT() -- StopAiming.Theme2
  119.     local script = Instance.new('LocalScript')
  120.     script.Parent = StopAiming
  121.     while wait() do
  122.         script.Parent.TextColor3 = script.Parent.Parent.StartAiming.TextColor3
  123.     end
  124.  
  125. end
  126. coroutine.resume(coroutine.create(SCRIPT_BASJ81_FAKESCRIPT))
  127. function SCRIPT_UJPZ73_FAKESCRIPT() -- Frame.Theme
  128.     local script = Instance.new('LocalScript')
  129.     script.Parent = Frame
  130.     local border1 = script.Parent.Border1
  131.     local border2 = script.Parent.Border2
  132.     local border3 = script.Parent.Border3
  133.     local border4 = script.Parent.Border4
  134.    
  135.    
  136.     while wait() do
  137.         border1.BackgroundColor3 = script.Parent.StartAiming.TextColor3
  138.         border2.BackgroundColor3 = script.Parent.StartAiming.TextColor3
  139.         border3.BackgroundColor3 = script.Parent.StartAiming.TextColor3
  140.         border4.BackgroundColor3 = script.Parent.StartAiming.TextColor3
  141.     end
  142.  
  143. end
  144. coroutine.resume(coroutine.create(SCRIPT_UJPZ73_FAKESCRIPT))
  145. function SCRIPT_ZTCI82_FAKESCRIPT() -- FixCamera.Theme3
  146.     local script = Instance.new('LocalScript')
  147.     script.Parent = FixCamera
  148.     while wait() do
  149.         script.Parent.TextColor3 = script.Parent.Parent.StartAiming.TextColor3
  150.     end
  151.  
  152. end
  153. coroutine.resume(coroutine.create(SCRIPT_ZTCI82_FAKESCRIPT))
  154. function SCRIPT_YEOU83_FAKESCRIPT() -- LF_AIMBOT_GUI.LocalScript
  155.     local script = Instance.new('LocalScript')
  156.     script.Parent = LF_AIMBOT_GUI
  157.     local GUI = script.Parent.Frame
  158.     local plrToAimAtButton = script.Parent.Frame.PlrToAimAt
  159.     local startButton = script.Parent.Frame.StartAiming
  160.     local stopButton = script.Parent.Frame.StopAiming
  161.     local fixCamButton = script.Parent.Frame.FixCamera
  162.    
  163.     GUI.Draggable = true
  164.     GUI.Selectable = true
  165.     GUI.Active = true
  166.    
  167.     function makeAimPart(name)
  168.         local SetParent = game:GetService("Workspace")[name]
  169.         local AimPart_1 = Instance.new("Part")
  170.         AimPart_1.Size = Vector3.new(1, 1, 1)
  171.         AimPart_1.Material = Enum.Material.Plastic
  172.         AimPart_1.CFrame = CFrame.new(2, 8, 7, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  173.         AimPart_1.BrickColor = BrickColor.new("Medium stone grey")
  174.         AimPart_1.Locked = false
  175.         AimPart_1.CastShadow = true
  176.         AimPart_1.Transparency = 1
  177.         AimPart_1.Reflectance = 0
  178.         AimPart_1.Name = "AimPart"
  179.         AimPart_1.Anchored = true
  180.         AimPart_1.Archivable = true
  181.         AimPart_1.CanCollide = false
  182.         AimPart_1.CollisionGroupId = 0
  183.         AimPart_1.Massless = false
  184.         AimPart_1.Shape = Enum.PartType.Block
  185.         AimPart_1.TopSurface = Enum.SurfaceType.Smooth
  186.         AimPart_1.BottomSurface = Enum.SurfaceType.Smooth
  187.         AimPart_1.RightSurface = Enum.SurfaceType.Smooth
  188.         AimPart_1.LeftSurface = Enum.SurfaceType.Smooth
  189.         AimPart_1.FrontSurface = Enum.SurfaceType.Smooth
  190.         AimPart_1.BackSurface = Enum.SurfaceType.Smooth
  191.         AimPart_1.Parent = SetParent
  192.         return game.Workspace[name]:WaitForChild("AimPart")
  193.     end
  194.    
  195.     startButton.MouseButton1Click:Connect(function()
  196.     --//
  197.    
  198.    
  199.            
  200.            
  201.             local username = plrToAimAtButton.Text
  202.            
  203.             local CC = game.workspace.CurrentCamera
  204.            
  205.             local AimAt = makeAimPart(username)
  206.            
  207.             CC.CameraType = Enum.CameraType.Scriptable
  208.            
  209.             wait(0.1)
  210.            
  211.             local fixedCam = false
  212.            
  213.             while wait() do
  214.                 if fixedCam == false then
  215.                     local player = game.Players.LocalPlayer
  216.                     if player.Character and player.Character:FindFirstChild("Humanoid") then
  217.                         local cam1 = workspace.CurrentCamera
  218.                         cam1.CameraSubject = player.Character.Humanoid
  219.                         cam1.CameraType = "Custom"
  220.                     end
  221.                     fixedCam = true
  222.                 elseif fixedCam == true then
  223.                     CC.CoordinateFrame = CFrame.new(CC.CoordinateFrame.p, AimAt.CFrame.p)
  224.                     local aimPart = game.Workspace[username].AimPart
  225.                     local wr = game.Workspace[username]
  226.                     local qb = game.Players.LocalPlayer.Character
  227.                     local mag = ""
  228.                     local set = ""
  229.                     local x = ""
  230.                     local y = ""
  231.                     local z = ""
  232.                    
  233.                    
  234.                     mag = (qb.HumanoidRootPart.Position - wr:WaitForChild("HumanoidRootPart").Position).magnitude
  235.                     set = mag/6
  236.                     print("loop began")
  237.                     x = wr.Head.Position.X
  238.                     y = wr.Head.Position.Y + set
  239.                     z = wr.Head.Position.Z
  240.                     aimPart.Position = Vector3.new(x,y,z)
  241.                     print("loop ended")
  242.                    
  243.                 end
  244.             end
  245.    
  246.    
  247.    
  248.     --//
  249.     end)
  250.    
  251.     stopButton.MouseButton1Click:Connect(function()
  252.        
  253.         local cam = game.Workspace.CurrentCamera
  254.         cam:Destroy()
  255.         wait(0.1)
  256.         cam.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
  257.         cam.CameraType = "Custom"
  258.        
  259.         wait()
  260.        
  261.         local player = game.Players.LocalPlayer
  262.         if player.Character and player.Character:FindFirstChild("Humanoid") then
  263.             local cam1 = workspace.CurrentCamera
  264.             cam1.CameraSubject = player.Character.Humanoid
  265.             cam1.CameraType = "Custom"
  266.         end
  267.     end)
  268.    
  269.     fixCamButton.MouseButton1Click:Connect(function()
  270.            
  271.             local player = game.Players.LocalPlayer
  272.             if player.Character and player.Character:FindFirstChild("Humanoid") then
  273.                 local cam1 = workspace.CurrentCamera
  274.                 cam1.CameraSubject = player.Character.Humanoid
  275.                 cam1.CameraType = "Custom"
  276.             end
  277.     end)
  278.  
  279. end
  280. coroutine.resume(coroutine.create(SCRIPT_YEOU83_FAKESCRIPT))
  281. function SCRIPT_FPQP73_FAKESCRIPT() -- LF_AIMBOT_GUI.AimCalibrator
  282.     local script = Instance.new('LocalScript')
  283.     script.Parent = LF_AIMBOT_GUI
  284.     --[[ --// ***THIS SCRIPT DOES NOT SERVE A PURPOSE, ITS JUST SOME NOTES*** //--
  285.        
  286.        
  287.     wait(3)
  288.     game.Workspace:WaitForChild(game.Players.LocalPlayer.Name)
  289.    
  290.    
  291.    
  292.     local username = "TestModel"
  293.     local aimPart = game.Workspace[username].AimPart
  294.     local wr = game.Workspace[username]
  295.     local qb = game.Players.LocalPlayer.Character
  296.     local mag = ""
  297.     local set = ""
  298.     local x = ""
  299.     local y = ""
  300.     local z = ""
  301.    
  302.     while wait() do
  303.         mag = (qb.HumanoidRootPart.Position - wr:WaitForChild("HumanoidRootPart").Position).magnitude
  304.         set = mag/8
  305.         print("loop began")
  306.         x = wr.Head.Position.X
  307.         y = wr.Head.Position.Y + set
  308.         z = wr.Head.Position.Z
  309.         aimPart.Position = Vector3.new(x,y,z)
  310.         print("loop ended")
  311.     end
  312.     --]]
  313.  
  314. end
  315. coroutine.resume(coroutine.create(SCRIPT_FPQP73_FAKESCRIPT))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement