Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local isPaused = false
- while true do
- if _G.Machine then
- print("false")
- isPaused = true
- end
- if not isPaused then
- wait(0.1) -- Wait for a short time
- local args = {
- [1] = 1,
- [2] = 1,
- [3] = false
- }
- game:GetService("ReplicatedStorage"):WaitForChild("Events"):WaitForChild("UpgradeMachine"):FireServer(unpack(args))
- args[3] = true
- game:GetService("ReplicatedStorage"):WaitForChild("Events"):WaitForChild("BuyMoreMachines"):FireServer(unpack(args))
- game:GetService("ReplicatedStorage"):WaitForChild("Events"):WaitForChild("Prestige"):FireServer()
- args = {
- [1] = 1,
- [2] = false
- }
- game:GetService("ReplicatedStorage"):WaitForChild("Events"):WaitForChild("FactoryUpgrade"):FireServer(unpack(args))
- args = {
- [1] = 2,
- [2] = false
- }
- game:GetService("ReplicatedStorage"):WaitForChild("Events"):WaitForChild("FactoryUpgrade"):FireServer(unpack(args))
- args = {
- [1] = 3,
- [2] = false
- }
- game:GetService("ReplicatedStorage"):WaitForChild("Events"):WaitForChild("FactoryUpgrade"):FireServer(unpack(args))
- args = {
- [1] = 4,
- [2] = false
- }
- game:GetService("ReplicatedStorage"):WaitForChild("Events"):WaitForChild("FactoryUpgrade"):FireServer(unpack(args))
- end
- wait(1) -- Wait here even if paused
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement