Advertisement
LukeToon

Hoops GUI

Nov 11th, 2019
28,406
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.34 KB | None | 0 0
  1. --[[
  2. Gui to Lua Converter
  3. -- Revamped by:HoIyScript
  4. --]]
  5.  
  6.  
  7.  
  8. -- Instances:
  9.  
  10. local HoopsGui = Instance.new("ScreenGui")
  11. local MainFrame = Instance.new("Frame")
  12. local MadeBy = Instance.new("TextLabel")
  13. local Aimbot = Instance.new("TextButton")
  14. local Fly = Instance.new("TextButton")
  15. local InfiniteStamina = Instance.new("TextButton")
  16. local Notice = Instance.new("TextLabel")
  17.  
  18. --[[
  19. Properties:
  20. --]]
  21.  
  22. HoopsGui.Name = "HoopsGui"
  23. HoopsGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  24.  
  25. MainFrame.Name = "MainFrame"
  26. MainFrame.Parent = HoopsGui
  27. MainFrame.BackgroundColor3 = Color3.new(1, 1, 0.498039)
  28. MainFrame.BackgroundTransparency = 0.059999998658895
  29. MainFrame.BorderColor3 = Color3.new(0, 0, 0)
  30. MainFrame.BorderSizePixel = 3
  31. MainFrame.Position = UDim2.new(0.560475111, 0, 0.299212605, 0)
  32. MainFrame.Size = UDim2.new(0, 319, 0, 149)
  33.  
  34. MadeBy.Name = "MadeBy"
  35. MadeBy.Parent = MainFrame
  36. MadeBy.BackgroundColor3 = Color3.new(1, 0.980392, 0.352941)
  37. MadeBy.BorderSizePixel = 0
  38. MadeBy.Position = UDim2.new(0.0282131657, 0, 0.0395480208, 0)
  39. MadeBy.Size = UDim2.new(0, 301, 0, 23)
  40. MadeBy.Font = Enum.Font.SourceSans
  41. MadeBy.Text = "Hoops Gui Made By LukeToon | Scripts Not Made By Luketoon "
  42. MadeBy.TextColor3 = Color3.new(0, 0, 0)
  43. MadeBy.TextScaled = true
  44. MadeBy.TextSize = 13
  45. MadeBy.TextWrapped = true
  46.  
  47. Aimbot.Name = "Aimbot"
  48. Aimbot.Parent = MainFrame
  49. Aimbot.BackgroundColor3 = Color3.new(0.968628, 1, 0.313726)
  50. Aimbot.BorderSizePixel = 0
  51. Aimbot.Position = UDim2.new(0.332288414, 0, 0.214689255, 0)
  52. Aimbot.Size = UDim2.new(0, 106, 0, 23)
  53. Aimbot.Font = Enum.Font.Arial
  54. Aimbot.Text = "Aimbot"
  55. Aimbot.TextColor3 = Color3.new(0, 0, 0)
  56. Aimbot.TextSize = 14
  57. Aimbot.MouseButton1Click:Connect(function()
  58. function onKeyPress(inputObject, gameProcessedEvent)
  59. if inputObject.KeyCode == Enum.KeyCode.R then
  60. game.ReplicatedStorage.Ball.StartShooting:FireServer()
  61. wait(0.5)
  62. game.ReplicatedStorage.Ball.EndShooting:InvokeServer(true,"Perfect")
  63. end
  64. end
  65.  
  66. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  67. end)
  68.  
  69. Fly.Name = "Fly"
  70. Fly.Parent = MainFrame
  71. Fly.BackgroundColor3 = Color3.new(0.968628, 1, 0.313726)
  72. Fly.BorderSizePixel = 0
  73. Fly.Position = UDim2.new(0.332288414, 0, 0.416676134, 0)
  74. Fly.Size = UDim2.new(0, 106, 0, 23)
  75. Fly.Font = Enum.Font.Arial
  76. Fly.Text = "Fly"
  77. Fly.TextColor3 = Color3.new(0, 0, 0)
  78. Fly.TextSize = 14
  79. Fly.MouseButton1Click:Connect(function()
  80. repeat wait()
  81. until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("Torso") and game.Players.LocalPlayer.Character:findFirstChild("Humanoid")
  82. local mouse = game.Players.LocalPlayer:GetMouse()
  83. repeat wait() until mouse
  84. local plr = game.Players.LocalPlayer
  85. local torso = plr.Character.Torso
  86. local flying = true
  87. local deb = true
  88. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  89. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  90. local maxspeed = 50
  91. local speed = 0
  92.  
  93. function Fly()
  94. local bg = Instance.new("BodyGyro", torso)
  95. bg.P = 9e4
  96. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  97. bg.cframe = torso.CFrame
  98. local bv = Instance.new("BodyVelocity", torso)
  99. bv.velocity = Vector3.new(0,0.1,0)
  100. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  101. repeat wait()
  102. plr.Character.Humanoid.PlatformStand = true
  103. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  104. speed = speed+.5+(speed/maxspeed)
  105. if speed > maxspeed then
  106. speed = maxspeed
  107. end
  108. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  109. speed = speed-1
  110. if speed < 0 then
  111. speed = 0
  112. end
  113. end
  114. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  115. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  116. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  117. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  118. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  119. else
  120. bv.velocity = Vector3.new(0,0.1,0)
  121. end
  122. bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  123. until not flying
  124. ctrl = {f = 0, b = 0, l = 0, r = 0}
  125. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  126. speed = 0
  127. bg:Destroy()
  128. bv:Destroy()
  129. plr.Character.Humanoid.PlatformStand = false
  130. end
  131. mouse.KeyDown:connect(function(key)
  132. if key:lower() == "e" then
  133. if flying then flying = false
  134. else
  135. flying = true
  136. Fly()
  137. end
  138. elseif key:lower() == "w" then
  139. ctrl.f = 1
  140. elseif key:lower() == "s" then
  141. ctrl.b = -1
  142. elseif key:lower() == "a" then
  143. ctrl.l = -1
  144. elseif key:lower() == "d" then
  145. ctrl.r = 1
  146. end
  147. end)
  148. mouse.KeyUp:connect(function(key)
  149. if key:lower() == "w" then
  150. ctrl.f = 0
  151. elseif key:lower() == "s" then
  152. ctrl.b = 0
  153. elseif key:lower() == "a" then
  154. ctrl.l = 0
  155. elseif key:lower() == "d" then
  156. ctrl.r = 0
  157. end
  158. end)
  159. Fly()
  160. end)
  161.  
  162. InfiniteStamina.Name = "InfiniteStamina"
  163. InfiniteStamina.Parent = MainFrame
  164. InfiniteStamina.BackgroundColor3 = Color3.new(0.968628, 1, 0.313726)
  165. InfiniteStamina.BorderSizePixel = 0
  166. InfiniteStamina.Position = UDim2.new(0.332288414, 0, 0.603951037, 0)
  167. InfiniteStamina.Size = UDim2.new(0, 106, 0, 23)
  168. InfiniteStamina.Font = Enum.Font.Arial
  169. InfiniteStamina.Text = "Infinite Stamina"
  170. InfiniteStamina.TextColor3 = Color3.new(0, 0, 0)
  171. InfiniteStamina.TextSize = 14
  172. InfiniteStamina.MouseButton1Click:Connect(function()
  173. while true do
  174. game.Players.LocalPlayer.PlayerScripts.Events.Player.Stamina.Stamina.Value = 9001
  175. wait()
  176. end
  177. end)
  178.  
  179. Notice.Name = "Notice"
  180. Notice.Parent = MainFrame
  181. Notice.BackgroundColor3 = Color3.new(1, 0.980392, 0.352941)
  182. Notice.BorderSizePixel = 0
  183. Notice.Position = UDim2.new(0.0703297183, 0, 0.810019672, 0)
  184. Notice.Size = UDim2.new(0, 272, 0, 18)
  185. Notice.Font = Enum.Font.SourceSans
  186. Notice.Text = "Aimbot Doesn't work all the time"
  187. Notice.TextColor3 = Color3.new(0, 0, 0)
  188. Notice.TextSize = 14
  189.  
  190. -- (to make the gui draggable)
  191.  
  192. MainFrame.Active = true
  193. MainFrame.Draggable = true
  194.  
  195.  
  196.  
  197. -- aimbot doesnt work all the time
  198. -- you cant disable fly
  199. --if you reset during fly it wont disable it
  200. -- just go in and out of afk and it fixes fly
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement