Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --GuiToLua V3
- --objects
- local ClientExecutor = Instance.new'ScreenGui'
- local Frame = Instance.new'Frame'
- local UICorner = Instance.new'UICorner'
- local Box = Instance.new'TextBox'
- local UICorner__2 = Instance.new'UICorner'
- local Execute = Instance.new'TextButton'
- local UICorner__3 = Instance.new'UICorner'
- local Clear = Instance.new'TextButton'
- local UICorner__4 = Instance.new'UICorner'
- local LocalScript = Instance.new'LocalScript'
- --properties
- ClientExecutor.Name = 'ClientExecutor'
- ClientExecutor.Parent = game:GetService'CoreGui';
- ClientExecutor.ResetOnSpawn = false
- ClientExecutor.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Frame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- Frame.BorderSizePixel = 0
- Frame.Parent = ClientExecutor
- Frame.Position = UDim2.new(0.22941645979881287, 0, 0.3317702114582062, 0)
- Frame.Size = UDim2.new(0, 430, 0, 253)
- UICorner.Parent = Frame
- Box.BackgroundColor3 = Color3.fromRGB(56, 56, 56)
- Box.BorderSizePixel = 0
- Box.ClearTextOnFocus = false
- Box.MultiLine = true
- Box.Name = 'Box'
- Box.Parent = Frame
- Box.Size = UDim2.new(0, 430, 0, 174)
- Box.Font = Enum.Font.Code
- Box.PlaceholderText = 'Script here.'
- Box.Text = ''
- Box.TextColor3 = Color3.fromRGB(255, 255, 255)
- Box.TextSize = 17
- Box.TextXAlignment = Enum.TextXAlignment.Left
- Box.TextYAlignment = Enum.TextYAlignment.Top
- UICorner__2.Parent = Box
- Execute.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
- Execute.Name = 'Execute'
- Execute.Parent = Frame
- Execute.Position = UDim2.new(0.01860465109348297, 0, 0.7430830001831055, 0)
- Execute.Size = UDim2.new(0, 200, 0, 50)
- Execute.Font = Enum.Font.Code
- Execute.Text = 'Execute'
- Execute.TextColor3 = Color3.fromRGB(255, 255, 255)
- Execute.TextSize = 32
- UICorner__3.Parent = Execute
- Clear.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
- Clear.Name = 'Clear'
- Clear.Parent = Frame
- Clear.Position = UDim2.new(0.5139535069465637, 0, 0.7430830001831055, 0)
- Clear.Size = UDim2.new(0, 200, 0, 50)
- Clear.Font = Enum.Font.Code
- Clear.Text = 'Clear'
- Clear.TextColor3 = Color3.fromRGB(255, 255, 255)
- Clear.TextSize = 32
- UICorner__4.Parent = Clear
- LocalScript.Parent = Frame
- --scripts
- coroutine.wrap(function()
- local script = LocalScript
- local Frame = script.Parent;
- local Box = Frame.Box;
- local Execute = Frame.Execute;
- local Clear = Frame.Clear;
- Execute.MouseButton1Click:Connect(function()
- local Suc, Res = pcall(loadstring, Box.Text);
- if Res then
- if Suc then
- local Suc,Res = pcall(Res);
- if not Suc and Res then
- warn(Res);
- end;
- else
- warn(Res);
- end;
- end;
- end);
- Clear.MouseButton1Click:Connect(function()
- Box.Text = '';
- end);
- end)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement