Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- https://roblox.com/games/4565425922/Box-Randomness-BETA --
- https://web.roblox.com/games/3497171914/The-Red-Planet -- Unfinished
- --codes--
- local MPS = game:GetService("MarketplaceService")
- MPS.ProcessReceipt = function(receiptInfo)
- if receiptInfo.ProductId == 946417802 then -- replace with your ID here
- local player = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
- player.leaderstats.Coins.Value = player.leaderstats.Coins.Value + 100
- return Enum.ProductPurchaseDecision.PurchaseGranted
- elseif receiptInfo.ProductId == 946419223 then -- replace with your ID here
- local player = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
- player.leaderstats.Coins.Value = player.leaderstats.Coins.Value + 500
- return Enum.ProductPurchaseDecision.PurchaseGranted
- elseif receiptInfo.ProductId == 946419500 then -- replace with your ID here
- local player = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
- player.leaderstats.Coins.Value = player.leaderstats.Coins.Value + 1000
- return Enum.ProductPurchaseDecision.PurchaseGranted
- end
- end
- ----
- function Event1()
- wait(2)
- local Wall1 = workspace.Wall1
- local Wall2 = workspace.Wall3
- for i = 1, 80 do
- wait(.1)
- Wall1.Position = Wall1.Position + Vector3.new(.1, 0, 0)
- Wall2.Position = Wall2.Position + Vector3.new(-.1, 0, 0)
- end
- wait(7)
- Wall1.Position = Wall1.Position + Vector3.new(-8, 0, 0)
- Wall2.Position = Wall2.Position + Vector3.new(8, 0, 0)
- end
- function Event2()
- local roof = workspace.Roof
- roof.Position = roof.Position + Vector3.new(-20, 0, 0)
- game.ReplicatedStorage.FloodEscape.Parent = workspace
- workspace.Roof.CanCollide = false
- wait(5)
- for i = 1, 120 do
- workspace.FloodEscape.Water.Position = workspace.FloodEscape.Water.Position + Vector3.new(0, .5, 0)
- wait(.2)
- end
- wait(2)
- workspace.FloodEscape.Water.Position = workspace.FloodEscape.Water.Position - Vector3.new(0, 60, 0)
- roof.Position = roof.Position + Vector3.new(20, 0, 0)
- workspace.FloodEscape.Parent = game.ReplicatedStorage
- wait(3)
- workspace.Roof.CanCollide = true
- end
- function Event3()
- local roof = workspace.Roof
- roof.Position = roof.Position + Vector3.new(0, -50, 0)
- game.ReplicatedStorage.Sword.Parent = workspace
- roof.CanCollide = false
- workspace.Barrier1.CanCollide = false
- workspace.Barrier2.CanCollide = false
- workspace.Barrier3.CanCollide = false
- workspace.Barrier4.CanCollide = false
- wait(30)
- roof.Position = roof.Position + Vector3.new(0, 50, 0)
- game.Workspace.Sword.Parent = game.ReplicatedStorage
- wait(2)
- workspace.Barrier1.CanCollide = true
- workspace.Barrier2.CanCollide = true
- workspace.Barrier3.CanCollide = true
- workspace.Barrier4.CanCollide = true
- roof.CanCollide = true
- game.ReplicatedStorage.RemoveSwords.Value = game.ReplicatedStorage.RemoveSwords.Value + 1
- end
- function Event4()
- local Aacid = game.ReplicatedStorage.Acid
- local roof = workspace.Roof
- Aacid.Parent = workspace
- roof.Position = roof.Position + Vector3.new(-20, 0, 0)
- game.Workspace.Light.Position = roof.Position + Vector3.new(-20, 0, 0)
- wait(30)
- roof.Position = roof.Position + Vector3.new(20, 0, 0)
- game.Workspace.Light.Position = roof.Position + Vector3.new(20, 0, 0)
- game.Workspace.Acid.Parent = game.ReplicatedStorage
- end
- function Event5()
- game.ReplicatedStorage.FLAva.Parent = workspace
- wait(5)
- workspace.FLAva.Lava.Position = workspace.FLAva.Lava.Position + Vector3.new(0, 10, 0)
- wait(20)
- workspace.FLAva.Lava.Position = workspace.FLAva.Lava.Position - Vector3.new(0, 10, 0)
- game.Workspace.FLAva.Parent = game.ReplicatedStorage
- end
- function Event6()
- workspace.Roof.Position = workspace.Roof.Position - Vector3.new(0, 50, 0)
- workspace.Sound["Raining Tacos"]:Play()
- for i = 1,100 do
- wait(.25)
- local clonedTaco = game.ReplicatedStorage.Taco:Clone()
- local clonedTaco2 = game.ReplicatedStorage.Taco2:Clone()
- local clonedTaco3 = game.ReplicatedStorage.Taco3:Clone()
- clonedTaco.Parent = workspace
- clonedTaco2.Parent = workspace
- clonedTaco3.Parent = workspace
- end
- workspace.Roof.Position = workspace.Roof.Position + Vector3.new(0, 50, 0)
- workspace.Sound["Raining Tacos"]:Stop()
- end
- function Event7()
- workspace.Sound["Beach"]:Play()
- workspace.Wall1.Position = workspace.Wall1.Position - Vector3.new(0, 50, 0)
- game.ReplicatedStorage.Beach.Parent = game.Workspace
- wait(30)
- workspace.Sound["Beach"]:Stop()
- workspace.Wall1.Position = workspace.Wall1.Position + Vector3.new(0, 50, 0)
- workspace.Beach.Parent = game.ReplicatedStorage
- end
- function Event8()
- workspace.Wall1.Position = workspace.Wall1.Position - Vector3.new(0, 50, 0)
- workspace.Sound["SpeedRun"]:Play()
- game.ReplicatedStorage.SpeedRun.Parent = workspace
- wait(30)
- workspace.SpeedRun.Parent = game.ReplicatedStorage
- workspace.Sound["SpeedRun"]:Stop()
- workspace.Wall1.Position = workspace.Wall1.Position + Vector3.new(0, 50, 0)
- end
- while true do
- game.ReplicatedStorage.Timer.Value = "10"
- for i = 1,10 do
- wait(1)
- game.ReplicatedStorage.Timer.Value = game.ReplicatedStorage.Timer.Value - 1
- end
- local EventNumber = math.random(1,8)
- print(EventNumber)
- if EventNumber == 1 then
- game.ReplicatedStorage.Event.Value = "1"
- Event1()
- end
- if EventNumber == 2 then
- game.ReplicatedStorage.Event.Value = "2"
- Event2()
- end
- if EventNumber == 3 then
- game.ReplicatedStorage.Event.Value = "3"
- Event3()
- end
- if EventNumber == 4 then
- game.ReplicatedStorage.Event.Value = "4"
- Event4()
- end
- if EventNumber == 5 then
- game.ReplicatedStorage.Event.Value = "5"
- Event5()
- end
- if EventNumber == 6 then
- game.ReplicatedStorage.Event.Value = "6"
- Event6()
- end
- if EventNumber == 7 then
- game.ReplicatedStorage.Event.Value = "7"
- Event7()
- end
- if EventNumber == 8 then
- game.ReplicatedStorage.Event.Value = "8"
- Event8()
- end
- end
- ----
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement