Advertisement
ma_tth3w

for hidden dev

Feb 18th, 2020
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.83 KB | None | 0 0
  1. https://roblox.com/games/4565425922/Box-Randomness-BETA --
  2. https://web.roblox.com/games/3497171914/The-Red-Planet -- Unfinished
  3.  
  4. --codes--
  5. local MPS = game:GetService("MarketplaceService")
  6.  
  7. MPS.ProcessReceipt = function(receiptInfo)
  8.     if receiptInfo.ProductId == 946417802 then -- replace with your ID here
  9.         local player = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
  10.         player.leaderstats.Coins.Value = player.leaderstats.Coins.Value + 100
  11.         return Enum.ProductPurchaseDecision.PurchaseGranted
  12.        
  13.     elseif receiptInfo.ProductId == 946419223 then -- replace with your ID here
  14.         local player = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
  15.         player.leaderstats.Coins.Value = player.leaderstats.Coins.Value + 500
  16.         return Enum.ProductPurchaseDecision.PurchaseGranted
  17.  
  18.     elseif receiptInfo.ProductId == 946419500 then -- replace with your ID here
  19.         local player = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
  20.         player.leaderstats.Coins.Value = player.leaderstats.Coins.Value + 1000
  21.         return Enum.ProductPurchaseDecision.PurchaseGranted
  22.  
  23.     end
  24. end
  25. ----
  26. function Event1()
  27.     wait(2)
  28.     local Wall1 = workspace.Wall1
  29.     local Wall2 = workspace.Wall3
  30.     for i = 1, 80 do
  31.         wait(.1)
  32.     Wall1.Position = Wall1.Position + Vector3.new(.1, 0, 0)
  33.     Wall2.Position = Wall2.Position + Vector3.new(-.1, 0, 0)
  34.            
  35.     end
  36.     wait(7)
  37.     Wall1.Position = Wall1.Position + Vector3.new(-8, 0, 0)
  38.     Wall2.Position = Wall2.Position + Vector3.new(8, 0, 0)
  39. end
  40.  
  41. function Event2()
  42. local roof = workspace.Roof
  43. roof.Position = roof.Position + Vector3.new(-20, 0, 0)
  44. game.ReplicatedStorage.FloodEscape.Parent = workspace
  45. workspace.Roof.CanCollide = false
  46. wait(5)
  47. for i = 1, 120 do
  48.     workspace.FloodEscape.Water.Position = workspace.FloodEscape.Water.Position + Vector3.new(0, .5, 0)
  49.     wait(.2)
  50. end
  51. wait(2)
  52. workspace.FloodEscape.Water.Position = workspace.FloodEscape.Water.Position - Vector3.new(0, 60, 0)
  53. roof.Position = roof.Position + Vector3.new(20, 0, 0)
  54. workspace.FloodEscape.Parent = game.ReplicatedStorage
  55. wait(3)
  56. workspace.Roof.CanCollide = true
  57. end
  58.  
  59. function Event3()
  60.     local roof = workspace.Roof
  61.     roof.Position = roof.Position + Vector3.new(0, -50, 0)
  62.     game.ReplicatedStorage.Sword.Parent = workspace
  63.     roof.CanCollide = false
  64.     workspace.Barrier1.CanCollide = false
  65.     workspace.Barrier2.CanCollide = false
  66.     workspace.Barrier3.CanCollide = false
  67.     workspace.Barrier4.CanCollide = false
  68.     wait(30)
  69.     roof.Position = roof.Position + Vector3.new(0, 50, 0)
  70.     game.Workspace.Sword.Parent = game.ReplicatedStorage
  71.     wait(2)
  72.     workspace.Barrier1.CanCollide = true
  73.     workspace.Barrier2.CanCollide = true
  74.     workspace.Barrier3.CanCollide = true
  75.     workspace.Barrier4.CanCollide = true
  76.     roof.CanCollide = true
  77.     game.ReplicatedStorage.RemoveSwords.Value = game.ReplicatedStorage.RemoveSwords.Value + 1
  78.    
  79. end
  80.  
  81. function Event4()
  82.     local Aacid = game.ReplicatedStorage.Acid
  83.     local roof = workspace.Roof
  84.  
  85.     Aacid.Parent = workspace
  86.     roof.Position = roof.Position + Vector3.new(-20, 0, 0)
  87.     game.Workspace.Light.Position = roof.Position + Vector3.new(-20, 0, 0)
  88.     wait(30)
  89.     roof.Position = roof.Position + Vector3.new(20, 0, 0)
  90.     game.Workspace.Light.Position = roof.Position + Vector3.new(20, 0, 0)
  91.     game.Workspace.Acid.Parent = game.ReplicatedStorage
  92. end
  93.  
  94. function Event5()
  95.     game.ReplicatedStorage.FLAva.Parent = workspace
  96.     wait(5)
  97.     workspace.FLAva.Lava.Position = workspace.FLAva.Lava.Position + Vector3.new(0, 10, 0)
  98.     wait(20)
  99.     workspace.FLAva.Lava.Position = workspace.FLAva.Lava.Position - Vector3.new(0, 10, 0)
  100.     game.Workspace.FLAva.Parent = game.ReplicatedStorage
  101.    
  102. end
  103.  
  104. function Event6()
  105.     workspace.Roof.Position = workspace.Roof.Position - Vector3.new(0, 50, 0)
  106.     workspace.Sound["Raining Tacos"]:Play()
  107.     for i = 1,100 do
  108.         wait(.25)
  109.     local clonedTaco = game.ReplicatedStorage.Taco:Clone()
  110.     local clonedTaco2 = game.ReplicatedStorage.Taco2:Clone()
  111.     local clonedTaco3 = game.ReplicatedStorage.Taco3:Clone()
  112.     clonedTaco.Parent = workspace
  113.     clonedTaco2.Parent = workspace
  114.     clonedTaco3.Parent = workspace
  115.     end
  116.     workspace.Roof.Position = workspace.Roof.Position + Vector3.new(0, 50, 0)
  117.     workspace.Sound["Raining Tacos"]:Stop()
  118. end
  119.  
  120. function Event7()
  121.     workspace.Sound["Beach"]:Play()
  122.     workspace.Wall1.Position = workspace.Wall1.Position - Vector3.new(0, 50, 0)
  123.     game.ReplicatedStorage.Beach.Parent = game.Workspace
  124.     wait(30)
  125.     workspace.Sound["Beach"]:Stop()
  126.     workspace.Wall1.Position = workspace.Wall1.Position + Vector3.new(0, 50, 0)
  127.     workspace.Beach.Parent = game.ReplicatedStorage
  128.    
  129. end
  130.  
  131. function Event8()
  132.     workspace.Wall1.Position = workspace.Wall1.Position - Vector3.new(0, 50, 0)
  133.     workspace.Sound["SpeedRun"]:Play()
  134.     game.ReplicatedStorage.SpeedRun.Parent = workspace
  135.     wait(30)
  136.     workspace.SpeedRun.Parent = game.ReplicatedStorage
  137.     workspace.Sound["SpeedRun"]:Stop()
  138.     workspace.Wall1.Position = workspace.Wall1.Position + Vector3.new(0, 50, 0)
  139.    
  140. end
  141.  
  142.  
  143. while true do
  144.     game.ReplicatedStorage.Timer.Value = "10"
  145. for i = 1,10 do
  146.     wait(1)
  147.     game.ReplicatedStorage.Timer.Value = game.ReplicatedStorage.Timer.Value - 1
  148. end
  149.  
  150.  
  151. local EventNumber = math.random(1,8)
  152. print(EventNumber)
  153.  
  154.  
  155.  
  156. if EventNumber == 1 then
  157.     game.ReplicatedStorage.Event.Value = "1"
  158.     Event1()
  159. end
  160.  
  161.  
  162. if EventNumber == 2 then
  163.     game.ReplicatedStorage.Event.Value = "2"
  164.     Event2()
  165. end
  166.  
  167.  
  168. if EventNumber == 3 then
  169.     game.ReplicatedStorage.Event.Value = "3"
  170.     Event3()
  171. end
  172.  
  173. if EventNumber == 4 then
  174.     game.ReplicatedStorage.Event.Value = "4"
  175.     Event4()
  176. end
  177.  
  178. if EventNumber == 5 then
  179.     game.ReplicatedStorage.Event.Value = "5"
  180.     Event5()
  181. end
  182.  
  183. if EventNumber == 6 then
  184.     game.ReplicatedStorage.Event.Value = "6"
  185.     Event6()
  186. end
  187.  
  188. if EventNumber == 7 then
  189.     game.ReplicatedStorage.Event.Value = "7"
  190.     Event7()
  191. end
  192.  
  193. if EventNumber == 8 then
  194.     game.ReplicatedStorage.Event.Value = "8"
  195.     Event8()
  196. end
  197.  
  198. end
  199. ----
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement