BINO2002

Paper Ball Simulator Auto Throw

May 11th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. local plr = game.Players.LocalPlayer
  2. local BackpackGui = plr.PlayerGui.MainMenuGui.MainFrame.DataFrame.Buttons.Backpack
  3.  
  4. _G.auto = true -- false to stop
  5. _G.BallName = "Paper Ball" -- edit to you current paper name
  6. _G.Max = tonumber(string.sub(BackpackGui.Current.BackpackText.Text, string.len(plr.BackpackStats.Value)+2))
  7.  
  8. while _G.auto == true do
  9. wait(0.1)
  10. _G.Max = tonumber(string.sub(BackpackGui.Current.BackpackText.Text, string.len(plr.BackpackStats.Value)+2))
  11.  
  12. if game.Players.LocalPlayer.BackpackStats.Value ~= _G.Max then
  13.  
  14. if game.Workspace[game.Players.LocalPlayer.Name]:FindFirstChild(_G.BallName) == nil then
  15. game.Workspace[game.Players.LocalPlayer.Name].Humanoid:EquipTool(game.Players.LocalPlayer.Backpack[_G.BallName])
  16. else
  17. local A_1 = game:GetService("Workspace")[game.Players.LocalPlayer.Name][_G.BallName]
  18. local Event = game:GetService("ReplicatedStorage").Resources.RemoteEvents.FireEvent
  19. Event:FireServer(A_1)
  20. print(_G.Max)
  21. warn(game.Players.LocalPlayer.BackpackStats.Value)
  22. end
  23.  
  24. else
  25. print(_G.Max)
  26. warn(game.Players.LocalPlayer.BackpackStats.Value)
  27. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(-470.005951, 13.4649868, -216.451111))
  28. end
  29.  
  30. end
Add Comment
Please, Sign In to add comment