Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local times = 0
- local Text3 = Instance.new("TextLabel")
- local Main3 = Instance.new("Frame")
- local CF3 = Instance.new("ScreenGui")
- local CG3 = game.CoreGui
- CF3.Name = "Pizza Maker"
- CF3.Parent = CG3
- local CGG3 = CG3["Pizza Maker"]
- Main3.Name = "Main3"
- Main3.Parent = CF3
- Main3.BackgroundColor3 = Color3.new(0.101961, 0.101961, 0.101961)
- Main3.BorderColor3 = Color3.new(0.101961, 0.101961, 0.101961)
- Main3.Position = UDim2.new(0, 500, 0, 500)
- Main3.Size = UDim2.new(0, 117, 0, 65)
- Main3.Visible = true
- Main3.Draggable = true
- Main3.Active = true
- Text3.Name = "Text3"
- Text3.Parent = Main3
- Text3.BackgroundColor3 = Color3.new(1, 1, 1)
- Text3.BackgroundTransparency = 1
- Text3.Position = UDim2.new(0, 0, 0, 0)
- Text3.Size = UDim2.new(0, 20, 0, 35)
- Text3.Font = Enum.Font.SourceSansBold
- Text3.FontSize = Enum.FontSize.Size18
- Text3.Text = "test"
- Text3.TextColor3 = Color3.new(0.901961, 0.901961, 0.901961)
- Text3.TextSize = 18
- Text3.TextXAlignment = Enum.TextXAlignment.Left
- function newbut(name, buttext)
- newname = name
- buttontext = buttext
- times = times + 1
- down = times * 33
- local Clicker3 = Instance.new("TextButton")
- Clicker3.Name = (newname)
- Clicker3.Parent = Main3
- Clicker3.BackgroundColor3 = Color3.new(0.780392, 0.309804, 0.341176)
- Clicker3.Position = UDim2.new(0, 0, 0, down)
- Clicker3.Size = UDim2.new(0, 117, 0, 30)
- Clicker3.Font = Enum.Font.Cartoon
- Clicker3.FontSize = Enum.FontSize.Size14
- Clicker3.Text = (buttontext)
- Clicker3.TextSize = 14
- Clicker3.TextXAlignment = Enum.TextXAlignment.Left
- end
- function newbox(bname, text)
- boxname = bname
- boxtext = text
- times = times + 1
- down = times * 33
- local thingbox = Instance.new("TextBox")
- thingbox.Name = (boxname)
- thingbox.Parent = Main3
- thingbox.BackgroundColor3 = Color3.new(0.780392, 0.309804, 0.341176)
- thingbox.Position = UDim2.new(0, 0, 0, down)
- thingbox.Size = UDim2.new(0, 117, 0, 30)
- thingbox.Font = Enum.Font.Cartoon
- thingbox.FontSize = Enum.FontSize.Size14
- thingbox.Text = (boxtext)
- thingbox.TextSize = 14
- thingbox.TextXAlignment = Enum.TextXAlignment.Left
- end
- newbut("On", "ON")
- CGG3.Main3.On.MouseButton1Down:connect(function()
- if CGG3.Main3.On.Text == "ON" then
- CGG3.Main3.On.Text = "OFF"
- a = true
- while a == true do
- wait(0.1)
- for i, v in pairs(game.Workspace.PizzaPlanet:GetChildren()) do
- if v.Name == "BakerWorkstations" then
- for a, b in pairs(v:GetChildren()) do
- game.ReplicatedStorage.DataEvent:FireServer({Order={true, true, true, "Ham"}, Type="FinishOrder", Workstation=b})
- game.ReplicatedStorage.DataEvent:FireServer({Workstation=b, Type="RestockIngredients"})
- end
- end
- end
- end
- end
- if CGG3.Main3.On.Text == "OFF" then
- CGG3.Main3.On.Text = "ON"
- a = false
- end
- end)
Add Comment
Please, Sign In to add comment