Advertisement
Gerard_games

Miners haven open box

Jun 20th, 2018
538
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.75 KB | None | 0 0
  1. -- Objects
  2.  
  3. local GUI = Instance.new("ScreenGui")
  4. local Frame = Instance.new("Frame")
  5. local Name = Instance.new("TextLabel")
  6. local Exit = Instance.new("TextButton")
  7. local Boxes = Instance.new("TextBox")
  8. local Spectral = Instance.new("TextButton")
  9. local RedBanded = Instance.new("TextButton")
  10. local luxury = Instance.new("TextButton")
  11. local Inferno = Instance.new("TextButton")
  12. local Regular = Instance.new("TextButton")
  13. local Unreal = Instance.new("TextButton")
  14.  
  15. -- Properties
  16.  
  17. GUI.Name = "GUI"
  18. GUI.Parent = game.CoreGui
  19. GUI.ResetOnSpawn = false
  20.  
  21. Frame.Parent = GUI
  22. Frame.Active = true
  23. Frame.BackgroundColor3 = Color3.new(0.352941, 0.352941, 0.352941)
  24. Frame.Position = UDim2.new(0.365172654, 0, 0.415277779, 0)
  25. Frame.Selectable = true
  26. Frame.Size = UDim2.new(0, 366, 0, 122)
  27. Frame.Draggable = true
  28.  
  29. Name.Name = "Name"
  30. Name.Parent = Frame
  31. Name.BackgroundColor3 = Color3.new(0.835294, 0.588235, 0.427451)
  32. Name.Position = UDim2.new(0.0355191268, 0, 0.0819672123, 0)
  33. Name.Size = UDim2.new(0, 264, 0, 31)
  34. Name.Text = "Miner's Haven Crate GUI"
  35. Name.TextColor3 = Color3.new(0, 0, 0)
  36. Name.TextSize = 12
  37.  
  38. Exit.Name = "Exit"
  39. Exit.Parent = Frame
  40. Exit.BackgroundColor3 = Color3.new(0.835294, 0.588235, 0.427451)
  41. Exit.Position = UDim2.new(0.773224056, 0, 0.0819672123, 0)
  42. Exit.Size = UDim2.new(0, 75, 0, 31)
  43. Exit.Text = "Exit"
  44. Exit.TextColor3 = Color3.new(0, 0, 0)
  45. Exit.TextSize = 14
  46.  
  47. Boxes.Name = "Boxes"
  48. Boxes.Parent = Frame
  49. Boxes.BackgroundColor3 = Color3.new(0.835294, 0.588235, 0.427451)
  50. Boxes.Position = UDim2.new(0.0355191268, 0, 0.393442631, 0)
  51. Boxes.Size = UDim2.new(0, 101, 0, 56)
  52. Boxes.Font = Enum.Font.SourceSans
  53. Boxes.Text = "Amount of boxes"
  54. Boxes.TextColor3 = Color3.new(0, 0, 0)
  55. Boxes.TextSize = 14
  56.  
  57. Spectral.Name = "Spectral"
  58. Spectral.Parent = Frame
  59. Spectral.BackgroundColor3 = Color3.new(0.835294, 0.588235, 0.427451)
  60. Spectral.Position = UDim2.new(0.330577761, 0, 0.635514557, 0)
  61. Spectral.Size = UDim2.new(0, 75, 0, 25)
  62. Spectral.Font = Enum.Font.SourceSans
  63. Spectral.Text = "Spectral"
  64. Spectral.TextColor3 = Color3.new(0, 0, 0)
  65. Spectral.TextSize = 14
  66.  
  67. RedBanded.Name = "Red Banded"
  68. RedBanded.Parent = Frame
  69. RedBanded.BackgroundColor3 = Color3.new(0.835294, 0.588235, 0.427451)
  70. RedBanded.Position = UDim2.new(0.551676452, 0, 0.643711269, 0)
  71. RedBanded.Size = UDim2.new(0, 75, 0, 25)
  72. RedBanded.Font = Enum.Font.SourceSans
  73. RedBanded.Text = "Red Banded"
  74. RedBanded.TextColor3 = Color3.new(0, 0, 0)
  75. RedBanded.TextSize = 14
  76.  
  77. luxury.Name = "luxury"
  78. luxury.Parent = Frame
  79. luxury.BackgroundColor3 = Color3.new(0.835294, 0.588235, 0.427451)
  80. luxury.Position = UDim2.new(0.774150252, 0, 0.643711269, 0)
  81. luxury.Size = UDim2.new(0, 75, 0, 25)
  82. luxury.Font = Enum.Font.SourceSans
  83. luxury.Text = "Luxury"
  84. luxury.TextColor3 = Color3.new(0, 0, 0)
  85. luxury.TextSize = 14
  86.  
  87. Inferno.Name = "Inferno"
  88. Inferno.Parent = Frame
  89. Inferno.BackgroundColor3 = Color3.new(0.835294, 0.588235, 0.427451)
  90. Inferno.Position = UDim2.new(0.773300767, 0, 0.393114746, 0)
  91. Inferno.Size = UDim2.new(0, 75, 0, 25)
  92. Inferno.Font = Enum.Font.SourceSans
  93. Inferno.Text = "Inferno"
  94. Inferno.TextColor3 = Color3.new(0, 0, 0)
  95. Inferno.TextSize = 14
  96.  
  97. Regular.Name = "Regular"
  98. Regular.Parent = Frame
  99. Regular.BackgroundColor3 = Color3.new(0.835294, 0.588235, 0.427451)
  100. Regular.Position = UDim2.new(0.330577701, 0, 0.393114746, 0)
  101. Regular.Size = UDim2.new(0, 75, 0, 25)
  102. Regular.Font = Enum.Font.SourceSans
  103. Regular.Text = "Regular"
  104. Regular.TextColor3 = Color3.new(0, 0, 0)
  105. Regular.TextSize = 14
  106.  
  107. Unreal.Name = "Unreal"
  108. Unreal.Parent = Frame
  109. Unreal.BackgroundColor3 = Color3.new(0.835294, 0.588235, 0.427451)
  110. Unreal.Position = UDim2.new(0.551912606, 0, 0.393442601, 0)
  111. Unreal.Size = UDim2.new(0, 75, 0, 25)
  112. Unreal.Font = Enum.Font.SourceSans
  113. Unreal.Text = "Unreal"
  114. Unreal.TextColor3 = Color3.new(0, 0, 0)
  115. Unreal.TextSize = 14
  116.  
  117. Exit.MouseButton1Click:connect(function()
  118. GUI:Destroy()
  119. end)
  120.  
  121. Spectral.MouseButton1Click:connect(function()
  122. for i = 1,Boxes.text do
  123. game.ReplicatedStorage.MysteryBox:InvokeServer("Spectral")
  124. wait(8)
  125. end
  126. end)
  127.  
  128. RedBanded.MouseButton1Click:connect(function()
  129. for i = 1,Boxes.text do
  130. game.ReplicatedStorage.MysteryBox:InvokeServer("Red-Banded")
  131. wait(8)
  132. end
  133. end)
  134.  
  135.  
  136. luxury.MouseButton1Click:connect(function()
  137. for i = 1,Boxes.text do
  138. game.ReplicatedStorage.MysteryBox:InvokeServer("Luxury")
  139. wait(8)
  140. end
  141. end)
  142.  
  143. Inferno.MouseButton1Click:connect(function()
  144. for i = 1,Boxes.text do
  145. game.ReplicatedStorage.MysteryBox:InvokeServer("Inferno")
  146. wait(8)
  147. end
  148. end)
  149.  
  150. Regular.MouseButton1Click:connect(function()
  151. for i = 1,Boxes.text do
  152. game.ReplicatedStorage.MysteryBox:InvokeServer("Regular")
  153. wait(8)
  154. end
  155. end)
  156.  
  157. Unreal.MouseButton1Click:connect(function()
  158. for i = 1,Boxes.text do
  159. game.ReplicatedStorage.MysteryBox:InvokeServer("Unreal")
  160. wait(8)
  161. end
  162. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement