Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- works here; https://www.roblox.com/games/593223204/RB-Westlake-Park
- --// MAINVARS //--
- remotes = game:GetService("ReplicatedStorage").gameplay
- mouse = game.Players.LocalPlayer:GetMouse()
- --// EDITVARS //--
- _G.accuracy = 99 -- Accuracy; 99 Makes it in almost always; 100 is always a green;
- _G.key = "f" -- Key to press to activate;
- --// SCRIPT //--
- print("Press f to shoot! \nPress q to toggle accuracy between 99 and 100!")
- --// ACCURACY SWITCH
- mouse.KeyDown:connect(function(k)
- if k == "q" then
- if _G.accuracy == 99 then
- _G.accuracy = 100
- elseif _G.accuracy == 100 then
- _G.accuracy = 99
- end
- print(_G.accuracy)
- end
- end)
- --// SHOOT
- mouse.KeyDown:connect(function(k)
- if k == _G.key then
- for _,v in pairs(game.Workspace:GetChildren()) do
- if v.Name == "Basketball" then
- if v.controller.Value == game.Players.LocalPlayer.Name then
- local oncourt = "Court"..tonumber(game.Players.LocalPlayer.System.OnCourt.Value)
- local onhoop = "_Hoop"..tonumber(game.Players.LocalPlayer.System.OnTeam.Value)
- remotes.character.value:FireServer("shooting", true)
- if game.Workspace[oncourt]:FindFirstChild(onhoop) then
- v.shoot:FireServer(game.Workspace[oncourt][onhoop], _G.accuracy, true)
- elseif game.Workspace[oncourt]:FindFirstChild("_Hoop1") then
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement