Advertisement
TxhGodRyanEZ

only ryans

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