SHOW:
|
|
- or go back to the newest paste.
1 | local times = 0 | |
2 | ||
3 | local Text3 = Instance.new("TextLabel") | |
4 | local Main3 = Instance.new("Frame") | |
5 | local CF3 = Instance.new("ScreenGui") | |
6 | local CG3 = game.CoreGui | |
7 | ||
8 | CF3.Name = "Pizza Maker" | |
9 | CF3.Parent = CG3 | |
10 | local CGG3 = CG3["Pizza Maker"] | |
11 | ||
12 | Main3.Name = "Main3" | |
13 | Main3.Parent = CF3 | |
14 | Main3.BackgroundColor3 = Color3.new(0.101961, 0.101961, 0.101961) | |
15 | Main3.BorderColor3 = Color3.new(0.101961, 0.101961, 0.101961) | |
16 | Main3.Position = UDim2.new(0, 500, 0, 500) | |
17 | Main3.Size = UDim2.new(0, 117, 0, 65) | |
18 | Main3.Visible = true | |
19 | Main3.Draggable = true | |
20 | Main3.Active = true | |
21 | ||
22 | Text3.Name = "Text3" | |
23 | Text3.Parent = Main3 | |
24 | Text3.BackgroundColor3 = Color3.new(1, 1, 1) | |
25 | Text3.BackgroundTransparency = 1 | |
26 | Text3.Position = UDim2.new(0, 0, 0, 0) | |
27 | Text3.Size = UDim2.new(0, 20, 0, 35) | |
28 | Text3.Font = Enum.Font.SourceSansBold | |
29 | Text3.FontSize = Enum.FontSize.Size18 | |
30 | Text3.Text = "test" | |
31 | Text3.TextColor3 = Color3.new(0.901961, 0.901961, 0.901961) | |
32 | Text3.TextSize = 18 | |
33 | Text3.TextXAlignment = Enum.TextXAlignment.Left | |
34 | ||
35 | ||
36 | function newbut(name, buttext) | |
37 | ||
38 | newname = name | |
39 | ||
40 | buttontext = buttext | |
41 | ||
42 | times = times + 1 | |
43 | ||
44 | down = times * 33 | |
45 | ||
46 | local Clicker3 = Instance.new("TextButton") | |
47 | ||
48 | ||
49 | Clicker3.Name = (newname) | |
50 | Clicker3.Parent = Main3 | |
51 | Clicker3.BackgroundColor3 = Color3.new(0.780392, 0.309804, 0.341176) | |
52 | Clicker3.Position = UDim2.new(0, 0, 0, down) | |
53 | Clicker3.Size = UDim2.new(0, 117, 0, 30) | |
54 | Clicker3.Font = Enum.Font.Cartoon | |
55 | Clicker3.FontSize = Enum.FontSize.Size14 | |
56 | Clicker3.Text = (buttontext) | |
57 | Clicker3.TextSize = 14 | |
58 | Clicker3.TextXAlignment = Enum.TextXAlignment.Left | |
59 | ||
60 | end | |
61 | ||
62 | ||
63 | function newbox(bname, text) | |
64 | ||
65 | boxname = bname | |
66 | ||
67 | boxtext = text | |
68 | ||
69 | times = times + 1 | |
70 | ||
71 | down = times * 33 | |
72 | ||
73 | local thingbox = Instance.new("TextBox") | |
74 | ||
75 | thingbox.Name = (boxname) | |
76 | thingbox.Parent = Main3 | |
77 | thingbox.BackgroundColor3 = Color3.new(0.780392, 0.309804, 0.341176) | |
78 | thingbox.Position = UDim2.new(0, 0, 0, down) | |
79 | thingbox.Size = UDim2.new(0, 117, 0, 30) | |
80 | thingbox.Font = Enum.Font.Cartoon | |
81 | thingbox.FontSize = Enum.FontSize.Size14 | |
82 | thingbox.Text = (boxtext) | |
83 | thingbox.TextSize = 14 | |
84 | thingbox.TextXAlignment = Enum.TextXAlignment.Left | |
85 | ||
86 | end | |
87 | ||
88 | newbut("On", "ON") | |
89 | ||
90 | ||
91 | CGG3.Main3.On.MouseButton1Down:connect(function() | |
92 | if CGG3.Main3.On.Text == "ON" then | |
93 | CGG3.Main3.On.Text = "OFF" | |
94 | a = true | |
95 | ||
96 | while a == true do | |
97 | wait(0.1) | |
98 | for i, v in pairs(game.Workspace.PizzaPlanet:GetChildren()) do | |
99 | if v.Name == "BakerWorkstations" then | |
100 | for a, b in pairs(v:GetChildren()) do | |
101 | game.ReplicatedStorage.DataEvent:FireServer({Order={true, true, true, "Ham"}, Type="FinishOrder", Workstation=b}) | |
102 | game.ReplicatedStorage.DataEvent:FireServer({Workstation=b, Type="RestockIngredients"}) | |
103 | end | |
104 | end | |
105 | end | |
106 | end | |
107 | end | |
108 | if CGG3.Main3.On.Text == "OFF" then | |
109 | CGG3.Main3.On.Text = "ON" | |
110 | a = false | |
111 | end | |
112 | end) |