Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = game.Players.LocalPlayer
- local BackpackGui = plr.PlayerGui.MainMenuGui.MainFrame.DataFrame.Buttons.Backpack
- _G.auto = true -- false to stop
- _G.BallName = "Paper Ball" -- edit to you current paper name
- _G.Max = tonumber(string.sub(BackpackGui.Current.BackpackText.Text, string.len(plr.BackpackStats.Value)+2))
- while _G.auto == true do
- wait(0.1)
- _G.Max = tonumber(string.sub(BackpackGui.Current.BackpackText.Text, string.len(plr.BackpackStats.Value)+2))
- if game.Players.LocalPlayer.BackpackStats.Value ~= _G.Max then
- if game.Workspace[game.Players.LocalPlayer.Name]:FindFirstChild(_G.BallName) == nil then
- game.Workspace[game.Players.LocalPlayer.Name].Humanoid:EquipTool(game.Players.LocalPlayer.Backpack[_G.BallName])
- else
- local A_1 = game:GetService("Workspace")[game.Players.LocalPlayer.Name][_G.BallName]
- local Event = game:GetService("ReplicatedStorage").Resources.RemoteEvents.FireEvent
- Event:FireServer(A_1)
- print(_G.Max)
- warn(game.Players.LocalPlayer.BackpackStats.Value)
- end
- else
- print(_G.Max)
- warn(game.Players.LocalPlayer.BackpackStats.Value)
- game.Players.LocalPlayer.Character:MoveTo(Vector3.new(-470.005951, 13.4649868, -216.451111))
- end
- end
Add Comment
Please, Sign In to add comment