Advertisement
Guest User

RB World 2 Aimbot Script

a guest
Jan 1st, 2018
29,545
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. --// MAINVARS //--
  2.  
  3. remotes = game:GetService("ReplicatedStorage").gameplay
  4. mouse = game.Players.LocalPlayer:GetMouse()
  5.  
  6. --// EDITVARS //--
  7.  
  8. _G.accuracy = 99 -- Accuracy; 99 Makes it in almost always; 100 is always a green;
  9. _G.key = "f" -- Key to press to activate;
  10.  
  11. --// SCRIPT //--
  12.  
  13. print("Press f to shoot! \nPress q to toggle accuracy between 99 and 100!")
  14.  
  15. --// ACCURACY SWITCH
  16.  
  17. mouse.KeyDown:connect(function(k)
  18. if k == "q" then
  19. if _G.accuracy == 99 then
  20. _G.accuracy = 100
  21. elseif _G.accuracy == 100 then
  22. _G.accuracy = 99
  23. end
  24. print(_G.accuracy)
  25. end
  26. end)
  27.  
  28. --// SHOOT
  29.  
  30. mouse.KeyDown:connect(function(k)
  31. if k == G.key then
  32. for ,v in pairs(game.Workspace:GetChildren()) do
  33. if v.Name == "Basketball" then
  34. if v.controller.Value == game.Players.LocalPlayer.Name then
  35. local oncourt = "Court"..tonumber(game.Players.LocalPlayer.System.OnCourt.Value)
  36. local onhoop = "_Hoop"..tonumber(game.Players.LocalPlayer.System.OnTeam.Value)
  37. remotes.character.value:FireServer("shooting", true)
  38. if game.Workspace[oncourt]:FindFirstChild(onhoop) then
  39. v.shoot:FireServer(game.Workspace[oncourt][onhoop], _G.accuracy, true)
  40. elseif game.Workspace[oncourt]:FindFirstChild("_Hoop1") then
  41. v.shoot:FireServer(game.Workspace[oncourt]["_Hoop1"], _G.accuracy, true)
  42. end
  43. end
  44. end
  45. end
  46. end
  47. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement