SHOW:
|
|
- or go back to the newest paste.
| 1 | -- Objects | |
| 2 | ||
| 3 | local ScreenGui = Instance.new("ScreenGui")
| |
| 4 | local guiframe = Instance.new("Frame")
| |
| 5 | local topbar = Instance.new("Frame")
| |
| 6 | local filename = Instance.new("TextLabel")
| |
| 7 | local execute = Instance.new("TextButton")
| |
| 8 | local close = Instance.new("TextButton")
| |
| 9 | local clear = Instance.new("TextButton")
| |
| 10 | local script = Instance.new("TextBox")
| |
| 11 | local openframe = Instance.new("Frame")
| |
| 12 | local open = Instance.new("TextButton")
| |
| 13 | ||
| 14 | -- Properties | |
| 15 | ||
| 16 | - | ScreenGui.Parent = game.CoreGui |
| 16 | + | ScreenGui.Parent = game.Players.SebTDZ500.PlayerGui |
| 17 | ||
| 18 | guiframe.Name = "guiframe" | |
| 19 | guiframe.Parent = ScreenGui | |
| 20 | guiframe.Active = true | |
| 21 | guiframe.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647) | |
| 22 | guiframe.BorderSizePixel = 0 | |
| 23 | guiframe.Draggable = true | |
| 24 | guiframe.Position = UDim2.new(0.502894282, 0, 0.0338921137, 0) | |
| 25 | guiframe.Selectable = true | |
| 26 | guiframe.Size = UDim2.new(0, 494, 0, 319) | |
| 27 | ||
| 28 | topbar.Name = "topbar" | |
| 29 | topbar.Parent = guiframe | |
| 30 | topbar.BackgroundColor3 = Color3.new(0.254902, 0.329412, 1) | |
| 31 | topbar.BorderSizePixel = 0 | |
| 32 | topbar.Position = UDim2.new(-0.00101214577, 0, 0, 0) | |
| 33 | topbar.Size = UDim2.new(0, 494, 0, 38) | |
| 34 | ||
| 35 | filename.Name = "filename" | |
| 36 | filename.Parent = topbar | |
| 37 | filename.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 38 | filename.BackgroundTransparency = 1 | |
| 39 | filename.BorderSizePixel = 0 | |
| 40 | filename.Position = UDim2.new(0.0241935477, 0, 0, 0) | |
| 41 | filename.Size = UDim2.new(0, 200, 0, 38) | |
| 42 | filename.Font = Enum.Font.SourceSansBold | |
| 43 | filename.FontSize = Enum.FontSize.Size24 | |
| 44 | filename.Text = "Script Executor" | |
| 45 | filename.TextColor3 = Color3.new(0, 0, 0) | |
| 46 | filename.TextSize = 24 | |
| 47 | filename.TextStrokeColor3 = Color3.new(1, 1, 1) | |
| 48 | filename.TextXAlignment = Enum.TextXAlignment.Left | |
| 49 | ||
| 50 | execute.Name = "execute" | |
| 51 | execute.Parent = guiframe | |
| 52 | execute.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235) | |
| 53 | execute.BorderColor3 = Color3.new(0, 0, 0) | |
| 54 | execute.BorderSizePixel = 4 | |
| 55 | execute.Position = UDim2.new(0.0910931155, 0, 0.813421905, 0) | |
| 56 | execute.Size = UDim2.new(0, 134, 0, 40) | |
| 57 | execute.Font = Enum.Font.SourceSansBold | |
| 58 | execute.FontSize = Enum.FontSize.Size32 | |
| 59 | execute.Text = "Execute" | |
| 60 | execute.TextColor3 = Color3.new(1, 1, 1) | |
| 61 | execute.TextSize = 30 | |
| 62 | ||
| 63 | close.Name = "close" | |
| 64 | close.Parent = guiframe | |
| 65 | close.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 66 | close.BackgroundTransparency = 1 | |
| 67 | close.BorderSizePixel = 0 | |
| 68 | close.Position = UDim2.new(0.923076868, 0, 0, 0) | |
| 69 | close.Size = UDim2.new(0, 38, 0, 38) | |
| 70 | close.Font = Enum.Font.SourceSansBold | |
| 71 | close.FontSize = Enum.FontSize.Size32 | |
| 72 | close.Text = "X" | |
| 73 | close.TextSize = 30 | |
| 74 | ||
| 75 | clear.Name = "clear" | |
| 76 | clear.Parent = guiframe | |
| 77 | clear.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235) | |
| 78 | clear.BorderColor3 = Color3.new(0, 0, 0) | |
| 79 | clear.BorderSizePixel = 4 | |
| 80 | clear.Position = UDim2.new(0.641700387, 0, 0.813421905, 0) | |
| 81 | clear.Size = UDim2.new(0, 134, 0, 40) | |
| 82 | clear.Font = Enum.Font.SourceSansBold | |
| 83 | clear.FontSize = Enum.FontSize.Size32 | |
| 84 | clear.Text = "Clear" | |
| 85 | clear.TextColor3 = Color3.new(1, 1, 1) | |
| 86 | clear.TextSize = 30 | |
| 87 | ||
| 88 | script.Name = "script" | |
| 89 | script.Parent = guiframe | |
| 90 | script.BackgroundColor3 = Color3.new(0.686275, 0.686275, 0.686275) | |
| 91 | script.Position = UDim2.new(0.0880566761, 0, 0.160612524, 0) | |
| 92 | script.Size = UDim2.new(0, 407, 0, 189) | |
| 93 | script.Font = Enum.Font.Fantasy | |
| 94 | script.FontSize = Enum.FontSize.Size18 | |
| 95 | script.Text = "print(\"Works\")" | |
| 96 | script.TextColor3 = Color3.new(0, 0, 0) | |
| 97 | script.TextSize = 16 | |
| 98 | script.TextXAlignment = Enum.TextXAlignment.Left | |
| 99 | script.TextYAlignment = Enum.TextYAlignment.Top | |
| 100 | ||
| 101 | openframe.Name = "openframe" | |
| 102 | openframe.Parent = ScreenGui | |
| 103 | openframe.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 104 | openframe.BackgroundTransparency = 1 | |
| 105 | openframe.Position = UDim2.new(0.105540894, 0, 0.778873265, 0) | |
| 106 | openframe.Size = UDim2.new(0, 100, 0, 100) | |
| 107 | ||
| 108 | open.Name = "open" | |
| 109 | open.Parent = openframe | |
| 110 | open.BackgroundColor3 = Color3.new(0.254902, 0.329412, 1) | |
| 111 | open.BorderSizePixel = 0 | |
| 112 | open.Draggable = true | |
| 113 | open.Position = UDim2.new(-0.709999979, 0, 0.790000021, 0) | |
| 114 | open.Size = UDim2.new(0, 99, 0, 50) | |
| 115 | open.Font = Enum.Font.SourceSansBold | |
| 116 | open.FontSize = Enum.FontSize.Size48 | |
| 117 | open.Text = "Open" | |
| 118 | open.TextColor3 = Color3.new(0, 0, 0) | |
| 119 | open.TextSize = 40 | |
| 120 | ||
| 121 | open.MouseButton1Click:connect(function() | |
| 122 | guiframe.Visible = true | |
| 123 | end) | |
| 124 | ||
| 125 | close.MouseButton1Click:connect(function() | |
| 126 | guiframe.Visible = false | |
| 127 | end) | |
| 128 | ||
| 129 | clear.MouseButton1Click:connect(function() | |
| 130 | script.Text = "" | |
| 131 | end) | |
| 132 | ||
| 133 | open.MouseButton1Click:connect(function() | |
| 134 | guiframe.Visible = true | |
| 135 | end) | |
| 136 | ||
| 137 | execute.MouseButton1Click:connect(function() | |
| 138 | loadstring(script.Text)() | |
| 139 | end) |