Advertisement
Guest User

aimbot gui

a guest
Aug 4th, 2018
18,387
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.12 KB | None | 0 0
  1. -- Farewell Infortality.
  2. -- Version: 2.82
  3. -- Instances:
  4. local MainFrame = Instance.new("Frame")
  5. local credits = Instance.new("TextLabel")
  6. local speed = Instance.new("TextButton")
  7. local aimbot = Instance.new("TextButton")
  8. local how = Instance.new("TextLabel")
  9. local use = Instance.new("TextLabel")
  10. --Properties:
  11. MainFrame.Name = "MainFrame"
  12. MainFrame.Parent = game.StarterGui.ScreenGui
  13. MainFrame.BackgroundColor3 = Color3.new(0.666667, 0, 0)
  14. MainFrame.Position = UDim2.new(0.088397786, 0, 0.261613697, 0)
  15. MainFrame.Size = UDim2.new(0, 402, 0, 275)
  16. MainFrame.Active = true
  17. MainFrame.Draggble = true
  18. credits.Name = "credits"
  19. credits.Parent = MainFrame
  20. credits.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  21. credits.Size = UDim2.new(0, 402, 0, 50)
  22. credits.Font = Enum.Font.SciFi
  23. credits.Text = "RBWorld2GUI [Created By ExploitGodz]"
  24. credits.TextColor3 = Color3.new(1, 1, 1)
  25. credits.TextSize = 20
  26.  
  27. speed.Name = "speed"
  28. speed.Parent = MainFrame
  29. speed.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  30. speed.Position = UDim2.new(0.25124377, 0, 0.229090914, 0)
  31. speed.Size = UDim2.new(0, 200, 0, 50)
  32. speed.Font = Enum.Font.SciFi
  33. speed.Text = "Speed"
  34. speed.TextColor3 = Color3.new(1, 1, 1)
  35. speed.TextSize = 20
  36. speed.MouseButton1Down:connect(function()
  37. down = false
  38. velocity = Instance.new("BodyVelocity")
  39. velocity.maxForce = Vector3.new(100000, 0, 100000)
  40. ---vv Use that to change the speed v
  41. local speed = 59
  42. gyro = Instance.new("BodyGyro")
  43. gyro.maxTorque = Vector3.new(100000, 0, 100000)
  44.  
  45. local hum = game.Players.LocalPlayer.Character.Humanoid
  46.  
  47. function onButton1Down(mouse)
  48. down = true
  49. velocity.Parent = game.Players.LocalPlayer.Character.UpperTorso
  50. velocity.velocity = (hum.MoveDirection) * speed
  51. gyro.Parent = game.Players.LocalPlayer.Character.UpperTorso
  52. while down do
  53. if not down then break end
  54. velocity.velocity = (hum.MoveDirection) * speed
  55. local refpos = gyro.Parent.Position + (gyro.Parent.Position - workspace.CurrentCamera.CoordinateFrame.p).unit * 5
  56. gyro.cframe = CFrame.new(gyro.Parent.Position, Vector3.new(refpos.x, gyro.Parent.Position.y, refpos.z))
  57. wait(0.1)
  58. end
  59. end
  60.  
  61. function onButton1Up(mouse)
  62. velocity.Parent = nil
  63. gyro.Parent = nil
  64. down = false
  65. end
  66. --To Change the key in those 2 lines, replace the "q" with your desired key
  67. function onSelected(mouse)
  68. mouse.KeyDown:connect(function(k) if k:lower()=="q"then onButton1Down(mouse)end end)
  69. mouse.KeyUp:connect(function(k) if k:lower()=="q"then onButton1Up(mouse)end end)
  70. end
  71.  
  72. onSelected(game.Players.LocalPlayer:GetMouse())
  73. end)
  74. aimbot.Name = "aimbot"
  75. aimbot.Parent = MainFrame
  76. aimbot.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  77. aimbot.Position = UDim2.new(0.25124377, 0, 0.618181825, 0)
  78. aimbot.Size = UDim2.new(0, 200, 0, 50)
  79. aimbot.Font = Enum.Font.SciFi
  80. aimbot.Text = "Aimbot"
  81. aimbot.TextColor3 = Color3.new(1, 1, 1)
  82. aimbot.TextSize = 20
  83. aimbot.MouseButton1Down:connect(function()
  84. local check = game:GetService("ReplicatedStorage").gameplay.ball:WaitForChild("check")
  85. function check.OnClientInvoke()
  86. return true
  87. end
  88.  
  89. --[[
  90. Written by A1_exe
  91. Edited by Shrektella
  92. L to Use the Aimbot
  93. Q to toggle between 100/99 accuracy
  94. ]]
  95.  
  96. local player = game:GetService('Players').LocalPlayer
  97. local mouse = player:GetMouse()
  98.  
  99. local range_min, range_max = 99, 100;
  100. mouse.KeyDown:connect(function(key)
  101. if key == "q" then
  102. if range_min == 99 and range_max == 99 then
  103. range_min = 100
  104. range_max = 100
  105. print("100")
  106. else if range_min == 100 and range_max == 100 then
  107. range_min = 99
  108. range_max = 99
  109. print("99")
  110. end
  111. end
  112. end
  113. end)
  114.  
  115. local playerData = player:FindFirstChild('System')
  116. local onTeam = playerData and playerData:FindFirstChild('OnTeam')
  117.  
  118. local storage = game:GetService('ReplicatedStorage')
  119. local gp = storage.gameplay
  120. local char = gp.character
  121. local val = char.value
  122.  
  123. local function find(t,i)
  124. for index, val in next, (t) do
  125. if (index == i) then
  126. return true, index, val
  127. elseif (val == i) then
  128. return true, index, val
  129. end
  130. end
  131. end
  132.  
  133. local hoops = (function()
  134. local hs = {},{};
  135.  
  136. local rec do
  137. rec = function(o)
  138. for __, child in next, (o:GetChildren()) do
  139. if string.lower(child['Name']):match('hoop') and child:FindFirstChild('Goal') then
  140. table.insert(hs, child)
  141. elseif #child:GetChildren() > 0 then
  142. rec(child)
  143. end
  144. end
  145. end
  146. end
  147.  
  148. rec(game.Workspace)
  149.  
  150. return hs
  151. end)()
  152.  
  153. local getShoot = function()
  154. local c = player.Character or player.CharacterAdded:wait()
  155. local hrp = c:WaitForChild('HumanoidRootPart',5)
  156. if not hrp then print('No humanoid root part.') return end
  157.  
  158.  
  159. local ball;
  160. for __, obj in next, (workspace:GetChildren()) do
  161. if obj.Name:lower() == 'basketball' and obj.controller.Value == player.Name then
  162. return obj.shoot
  163. end
  164. end
  165. end
  166.  
  167. local getHoop = function()
  168. local c = player.Character or player.CharacterAdded:wait()
  169. local hrp = c:WaitForChild('HumanoidRootPart',5)
  170. if not hrp then print('No humanoid root part.') return end
  171.  
  172. local last, closest = math.huge;
  173. for __, hoop in next, (hoops) do
  174. local goal = hoop:FindFirstChild('Goal')
  175.  
  176. if goal then
  177. local dist = (hrp.Position-goal.Position).magnitude
  178. if dist < last then
  179. last = dist
  180. closest = hoop
  181. end
  182. end
  183. end
  184. return closest
  185. end
  186.  
  187. local Attack = function(shoot, hoop)
  188. if shoot and hoop then
  189. val:FireServer("shooting", true)
  190. shoot:FireServer(hoop, math.random(range_min,range_max), true)
  191. end
  192. end
  193.  
  194. mouse.KeyDown:connect(function(key)
  195. if key == "l" then
  196. local shoot = getShoot()
  197. local hoop = getHoop()
  198.  
  199. court = hoop.Parent
  200. local data = court:FindFirstChild('GameData')
  201. local teamball = data and data:FindFirstChild('TeamBall')
  202.  
  203. local h1 = court:FindFirstChild('_Hoop1')
  204. local h2 = court:FindFirstChild('_Hoop2')
  205.  
  206. if OnTeam and OnTeam.Value == 1 and h1 then
  207. Attack(shoot,h1)
  208. return
  209. elseif OnTeam and OnTeam.Value == 2 and h2 then
  210. Attack(shoot,h2)
  211. return
  212. end
  213.  
  214. if teamball and teamball.Value == 1 and h1 then
  215. Attack(shoot,h1)
  216. return
  217. elseif teamball and teamball.Value == 2 and h2 then
  218. Attack(shoot,h2)
  219. return
  220. end
  221.  
  222.  
  223. Attack(shoot,hoop)
  224. end
  225. end)
  226. end)
  227. how.Name = "how"
  228. how.Parent = MainFrame
  229. how.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  230. how.Position = UDim2.new(0.298507452, 0, 0.454545438, 0)
  231. how.Size = UDim2.new(0, 162, 0, 24)
  232. how.Font = Enum.Font.SciFi
  233. how.Text = "Press Q to use speed"
  234. how.TextColor3 = Color3.new(1, 1, 1)
  235. how.TextSize = 14
  236.  
  237. use.Name = "use"
  238. use.Parent = MainFrame
  239. use.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  240. use.Position = UDim2.new(0.298507452, 0, 0.861818194, 0)
  241. use.Size = UDim2.new(0, 162, 0, 24)
  242. use.Font = Enum.Font.SciFi
  243. use.Text = "Press L to use aimbot"
  244. use.TextColor3 = Color3.new(1, 1, 1)
  245. use.TextSize = 14
  246. -- Scripts:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement