SHARE
TWEET

Untitled

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