SHOW:
|
|
- or go back to the newest paste.
1 | -- Objects | |
2 | ||
3 | local ExampleSS = Instance.new("ScreenGui") | |
4 | local skid = Instance.new("Frame") | |
5 | local source = Instance.new("TextBox") | |
6 | local execute = Instance.new("TextButton") | |
7 | local clear = Instance.new("TextButton") | |
8 | ||
9 | -- Properties | |
10 | ||
11 | ExampleSS.Name = "ExampleSS" | |
12 | ExampleSS.Parent = game.CoreGui | |
13 | ExampleSS.ZIndexBehavior = Enum.ZIndexBehavior.Sibling | |
14 | ||
15 | skid.Name = "skid" | |
16 | skid.Parent = ExampleSS | |
17 | skid.Active = true | |
18 | skid.BackgroundColor3 = Color3.new(0, 0, 0) | |
19 | skid.Position = UDim2.new(0.298701286, 0, 0.184060723, 0) | |
20 | skid.Size = UDim2.new(0, 430, 0, 288) | |
21 | skid.Draggable = true | |
22 | ||
23 | source.Name = "source" | |
24 | source.Parent = skid | |
25 | source.BackgroundColor3 = Color3.new(1, 1, 1) | |
26 | source.Position = UDim2.new(0.0209302325, 0, 0.020833334, 0) | |
27 | source.Size = UDim2.new(0, 413, 0, 225) | |
28 | source.Font = Enum.Font.SourceSans | |
29 | source.Text = "" | |
30 | source.TextColor3 = Color3.new(0, 0, 0) | |
31 | source.TextSize = 20 | |
32 | ||
33 | execute.Name = "execute" | |
34 | execute.Parent = skid | |
35 | execute.BackgroundColor3 = Color3.new(1, 1, 1) | |
36 | execute.Position = UDim2.new(0, 0, 0.826388896, 0) | |
37 | execute.Size = UDim2.new(0, 200, 0, 50) | |
38 | execute.Font = Enum.Font.SourceSans | |
39 | execute.Text = "execute" | |
40 | execute.TextColor3 = Color3.new(0, 0, 0) | |
41 | execute.TextScaled = true | |
42 | execute.TextSize = 14 | |
43 | execute.TextWrapped = true | |
44 | ||
45 | clear.Name = "clear" | |
46 | clear.Parent = skid | |
47 | clear.BackgroundColor3 = Color3.new(1, 1, 1) | |
48 | clear.Position = UDim2.new(0.534883738, 0, 0.826388896, 0) | |
49 | clear.Size = UDim2.new(0, 200, 0, 50) | |
50 | clear.Font = Enum.Font.SourceSans | |
51 | clear.Text = "clear" | |
52 | clear.TextColor3 = Color3.new(0, 0, 0) | |
53 | clear.TextScaled = true | |
54 | clear.TextSize = 14 | |
55 | clear.TextWrapped = true | |
56 | ||
57 | execute.MouseButton1Click:connect(function() | |
58 | game.ReplicatedStorage.RemoteEvent:FireServer(source.Text) | |
59 | end) |