SHARE
TWEET

jjj

a guest Oct 26th, 2018 136 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. -- works here; https://www.roblox.com/games/593223204/RB-Westlake-Park
  3.  
  4. --// MAINVARS //--
  5.  
  6. remotes = game:GetService("ReplicatedStorage").gameplay
  7. mouse = game.Players.LocalPlayer:GetMouse()
  8.  
  9. --// EDITVARS //--
  10.  
  11. _G.accuracy = 99 -- Accuracy; 99 Makes it in almost always; 100 is always a green;
  12. _G.key = "f" -- Key to press to activate;
  13.  
  14. --// SCRIPT //--
  15.  
  16. print("Press f to shoot! \nPress q to toggle accuracy between 99 and 100!")
  17.  
  18. --// ACCURACY SWITCH
  19.  
  20. mouse.KeyDown:connect(function(k)
  21. if k == "q" then
  22. if _G.accuracy == 99 then
  23. _G.accuracy = 100
  24. elseif _G.accuracy == 100 then
  25. _G.accuracy = 99
  26. end
  27. print(_G.accuracy)
  28. end
  29. end)
  30.  
  31. --// SHOOT
  32.  
  33. mouse.KeyDown:connect(function(k)
  34. if k == _G.key then
  35. for _,v in pairs(game.Workspace:GetChildren()) do
  36. if v.Name == "Basketball" then
  37. if v.controller.Value == game.Players.LocalPlayer.Name then
  38. local oncourt = "Court"..tonumber(game.Players.LocalPlayer.System.OnCourt.Value)
  39. local onhoop = "_Hoop"..tonumber(game.Players.LocalPlayer.System.OnTeam.Value)
  40. remotes.character.value:FireServer("shooting", true)
  41. if game.Workspace[oncourt]:FindFirstChild(onhoop) then
  42. v.shoot:FireServer(game.Workspace[oncourt][onhoop], _G.accuracy, true)
  43. elseif game.Workspace[oncourt]:FindFirstChild("_Hoop1") then
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top