Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Objects
- local GUI = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local Name = Instance.new("TextLabel")
- local Exit = Instance.new("TextButton")
- local Boxes = Instance.new("TextBox")
- local Spectral = Instance.new("TextButton")
- local RedBanded = Instance.new("TextButton")
- local luxury = Instance.new("TextButton")
- local Inferno = Instance.new("TextButton")
- local Regular = Instance.new("TextButton")
- local Unreal = Instance.new("TextButton")
- -- Properties
- GUI.Name = "GUI"
- GUI.Parent = game.CoreGui
- GUI.ResetOnSpawn = false
- Frame.Parent = GUI
- Frame.Active = true
- Frame.BackgroundColor3 = Color3.new(0.352941, 0.352941, 0.352941)
- Frame.Position = UDim2.new(0.365172654, 0, 0.415277779, 0)
- Frame.Selectable = true
- Frame.Size = UDim2.new(0, 366, 0, 122)
- Frame.Draggable = true
- Name.Name = "Name"
- Name.Parent = Frame
- Name.BackgroundColor3 = Color3.new(0.835294, 0.588235, 0.427451)
- Name.Position = UDim2.new(0.0355191268, 0, 0.0819672123, 0)
- Name.Size = UDim2.new(0, 264, 0, 31)
- Name.Text = "Miner's Haven Crate GUI"
- Name.TextColor3 = Color3.new(0, 0, 0)
- Name.TextSize = 12
- Exit.Name = "Exit"
- Exit.Parent = Frame
- Exit.BackgroundColor3 = Color3.new(0.835294, 0.588235, 0.427451)
- Exit.Position = UDim2.new(0.773224056, 0, 0.0819672123, 0)
- Exit.Size = UDim2.new(0, 75, 0, 31)
- Exit.Text = "Exit"
- Exit.TextColor3 = Color3.new(0, 0, 0)
- Exit.TextSize = 14
- Boxes.Name = "Boxes"
- Boxes.Parent = Frame
- Boxes.BackgroundColor3 = Color3.new(0.835294, 0.588235, 0.427451)
- Boxes.Position = UDim2.new(0.0355191268, 0, 0.393442631, 0)
- Boxes.Size = UDim2.new(0, 101, 0, 56)
- Boxes.Font = Enum.Font.SourceSans
- Boxes.Text = "Amount of boxes"
- Boxes.TextColor3 = Color3.new(0, 0, 0)
- Boxes.TextSize = 14
- Spectral.Name = "Spectral"
- Spectral.Parent = Frame
- Spectral.BackgroundColor3 = Color3.new(0.835294, 0.588235, 0.427451)
- Spectral.Position = UDim2.new(0.330577761, 0, 0.635514557, 0)
- Spectral.Size = UDim2.new(0, 75, 0, 25)
- Spectral.Font = Enum.Font.SourceSans
- Spectral.Text = "Spectral"
- Spectral.TextColor3 = Color3.new(0, 0, 0)
- Spectral.TextSize = 14
- RedBanded.Name = "Red Banded"
- RedBanded.Parent = Frame
- RedBanded.BackgroundColor3 = Color3.new(0.835294, 0.588235, 0.427451)
- RedBanded.Position = UDim2.new(0.551676452, 0, 0.643711269, 0)
- RedBanded.Size = UDim2.new(0, 75, 0, 25)
- RedBanded.Font = Enum.Font.SourceSans
- RedBanded.Text = "Red Banded"
- RedBanded.TextColor3 = Color3.new(0, 0, 0)
- RedBanded.TextSize = 14
- luxury.Name = "luxury"
- luxury.Parent = Frame
- luxury.BackgroundColor3 = Color3.new(0.835294, 0.588235, 0.427451)
- luxury.Position = UDim2.new(0.774150252, 0, 0.643711269, 0)
- luxury.Size = UDim2.new(0, 75, 0, 25)
- luxury.Font = Enum.Font.SourceSans
- luxury.Text = "Luxury"
- luxury.TextColor3 = Color3.new(0, 0, 0)
- luxury.TextSize = 14
- Inferno.Name = "Inferno"
- Inferno.Parent = Frame
- Inferno.BackgroundColor3 = Color3.new(0.835294, 0.588235, 0.427451)
- Inferno.Position = UDim2.new(0.773300767, 0, 0.393114746, 0)
- Inferno.Size = UDim2.new(0, 75, 0, 25)
- Inferno.Font = Enum.Font.SourceSans
- Inferno.Text = "Inferno"
- Inferno.TextColor3 = Color3.new(0, 0, 0)
- Inferno.TextSize = 14
- Regular.Name = "Regular"
- Regular.Parent = Frame
- Regular.BackgroundColor3 = Color3.new(0.835294, 0.588235, 0.427451)
- Regular.Position = UDim2.new(0.330577701, 0, 0.393114746, 0)
- Regular.Size = UDim2.new(0, 75, 0, 25)
- Regular.Font = Enum.Font.SourceSans
- Regular.Text = "Regular"
- Regular.TextColor3 = Color3.new(0, 0, 0)
- Regular.TextSize = 14
- Unreal.Name = "Unreal"
- Unreal.Parent = Frame
- Unreal.BackgroundColor3 = Color3.new(0.835294, 0.588235, 0.427451)
- Unreal.Position = UDim2.new(0.551912606, 0, 0.393442601, 0)
- Unreal.Size = UDim2.new(0, 75, 0, 25)
- Unreal.Font = Enum.Font.SourceSans
- Unreal.Text = "Unreal"
- Unreal.TextColor3 = Color3.new(0, 0, 0)
- Unreal.TextSize = 14
- Exit.MouseButton1Click:connect(function()
- GUI:Destroy()
- end)
- Spectral.MouseButton1Click:connect(function()
- for i = 1,Boxes.text do
- game.ReplicatedStorage.MysteryBox:InvokeServer("Spectral")
- wait(8)
- end
- end)
- RedBanded.MouseButton1Click:connect(function()
- for i = 1,Boxes.text do
- game.ReplicatedStorage.MysteryBox:InvokeServer("Red-Banded")
- wait(8)
- end
- end)
- luxury.MouseButton1Click:connect(function()
- for i = 1,Boxes.text do
- game.ReplicatedStorage.MysteryBox:InvokeServer("Luxury")
- wait(8)
- end
- end)
- Inferno.MouseButton1Click:connect(function()
- for i = 1,Boxes.text do
- game.ReplicatedStorage.MysteryBox:InvokeServer("Inferno")
- wait(8)
- end
- end)
- Regular.MouseButton1Click:connect(function()
- for i = 1,Boxes.text do
- game.ReplicatedStorage.MysteryBox:InvokeServer("Regular")
- wait(8)
- end
- end)
- Unreal.MouseButton1Click:connect(function()
- for i = 1,Boxes.text do
- game.ReplicatedStorage.MysteryBox:InvokeServer("Unreal")
- wait(8)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement