Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Gui to Lua
- -- Version: 3.2
- -- Instances:
- local ScreenGui = Instance.new("ScreenGui")
- local Menu = Instance.new("Frame")
- local CloseButton = Instance.new("TextButton")
- local Command = Instance.new("TextBox")
- local RunCommandButton = Instance.new("TextButton")
- local LoopButton = Instance.new("TextButton")
- local StopLoopButton = Instance.new("TextButton")
- local EnterCommandLabel = Instance.new("TextLabel")
- local TitleLabel = Instance.new("TextLabel")
- local OpenMenu = Instance.new("Frame")
- local OpenButton = Instance.new("TextButton")
- local loop = false
- local command = ""
- --Properties:
- ScreenGui.Parent = game.CoreGui
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Menu.Name = "Menu"
- Menu.Parent = ScreenGui
- Menu.Active = true
- Menu.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Menu.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Menu.Position = UDim2.new(0.193649009, 0, 0.270348847, 0)
- Menu.Size = UDim2.new(0, 498, 0, 291)
- Menu.Visible = false
- Menu.Draggable = true
- CloseButton.Name = "CloseButton"
- CloseButton.Parent = Menu
- CloseButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- CloseButton.Position = UDim2.new(0.897088289, 0, 0, 0)
- CloseButton.Size = UDim2.new(0, 50, 0, 50)
- CloseButton.Font = Enum.Font.SourceSans
- CloseButton.Text = "x"
- CloseButton.TextColor3 = Color3.fromRGB(170, 0, 0)
- CloseButton.TextScaled = true
- CloseButton.TextSize = 14.000
- CloseButton.TextWrapped = true
- CloseButton.MouseButton1Down:connect(function()
- Menu.Visible = false
- OpenMenu.Visible = true
- end)
- Command.Name = "Command"
- Command.Parent = Menu
- Command.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Command.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Command.Position = UDim2.new(0.407695472, 0, 0.400185704, 0)
- Command.Size = UDim2.new(0, 200, 0, 50)
- Command.Font = Enum.Font.SourceSans
- Command.Text = ""
- Command.TextColor3 = Color3.fromRGB(0, 0, 0)
- Command.TextSize = 14.000
- RunCommandButton.Name = "RunCommandButton"
- RunCommandButton.Parent = Menu
- RunCommandButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- RunCommandButton.BorderColor3 = Color3.fromRGB(57, 82, 93)
- RunCommandButton.Position = UDim2.new(0.0166548565, 0, 0.694620132, 0)
- RunCommandButton.Size = UDim2.new(0, 150, 0, 50)
- RunCommandButton.Font = Enum.Font.SourceSans
- RunCommandButton.Text = "Run Command"
- RunCommandButton.TextColor3 = Color3.fromRGB(170, 255, 0)
- RunCommandButton.TextScaled = true
- RunCommandButton.TextSize = 14.000
- RunCommandButton.TextWrapped = true
- RunCommandButton.MouseButton1Down:connect(function()
- ExecuteCommand(Command.Text)
- end)
- LoopButton.Name = "LoopButton"
- LoopButton.Parent = Menu
- LoopButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- LoopButton.BorderColor3 = Color3.fromRGB(57, 82, 93)
- LoopButton.Position = UDim2.new(0.347507715, 0, 0.695172548, 0)
- LoopButton.Size = UDim2.new(0, 150, 0, 50)
- LoopButton.Font = Enum.Font.SourceSans
- LoopButton.Text = "Loop Command"
- LoopButton.TextColor3 = Color3.fromRGB(170, 255, 0)
- LoopButton.TextScaled = true
- LoopButton.TextSize = 14.000
- LoopButton.TextWrapped = true
- LoopButton.MouseButton1Down:connect(function()
- loop = true
- command = Command.Text
- end)
- StopLoopButton.Name = "StopLoopButton"
- StopLoopButton.Parent = Menu
- StopLoopButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- StopLoopButton.BorderColor3 = Color3.fromRGB(57, 82, 93)
- StopLoopButton.Position = UDim2.new(0.679305494, 0, 0.693855822, 0)
- StopLoopButton.Size = UDim2.new(0, 150, 0, 50)
- StopLoopButton.Font = Enum.Font.SourceSans
- StopLoopButton.Text = "Stop Loop"
- StopLoopButton.TextColor3 = Color3.fromRGB(170, 255, 0)
- StopLoopButton.TextScaled = true
- StopLoopButton.TextSize = 14.000
- StopLoopButton.TextWrapped = true
- StopLoopButton.MouseButton1Down:connect(function()
- loop = false
- end)
- EnterCommandLabel.Name = "EnterCommandLabel"
- EnterCommandLabel.Parent = Menu
- EnterCommandLabel.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- EnterCommandLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
- EnterCommandLabel.Position = UDim2.new(0.0180722885, 0, 0.401406229, 0)
- EnterCommandLabel.Size = UDim2.new(0, 181, 0, 50)
- EnterCommandLabel.Font = Enum.Font.SourceSans
- EnterCommandLabel.Text = "Enter Command:"
- EnterCommandLabel.TextColor3 = Color3.fromRGB(170, 255, 0)
- EnterCommandLabel.TextScaled = true
- EnterCommandLabel.TextSize = 14.000
- EnterCommandLabel.TextWrapped = true
- TitleLabel.Name = "TitleLabel"
- TitleLabel.Parent = Menu
- TitleLabel.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- TitleLabel.Position = UDim2.new(0.170682728, 0, 0, 0)
- TitleLabel.Size = UDim2.new(0, 355, 0, 50)
- TitleLabel.Font = Enum.Font.SourceSans
- TitleLabel.Text = "Test Kohls Gui"
- TitleLabel.TextColor3 = Color3.fromRGB(170, 255, 0)
- TitleLabel.TextScaled = true
- TitleLabel.TextSize = 14.000
- TitleLabel.TextWrapped = true
- OpenMenu.Name = "OpenMenu"
- OpenMenu.Parent = ScreenGui
- OpenMenu.Active = true
- OpenMenu.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- OpenMenu.BorderColor3 = Color3.fromRGB(0, 0, 0)
- OpenMenu.Position = UDim2.new(0.898155868, 0, 0.431686044, 0)
- OpenMenu.Selectable = true
- OpenMenu.Size = UDim2.new(0, 100, 0, 50)
- OpenButton.Draggable = true
- OpenButton.Name = "OpenButton"
- OpenButton.Parent = OpenMenu
- OpenButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- OpenButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
- OpenButton.Position = UDim2.new(-0.00555554032, 0, -0.00666666031, 0)
- OpenButton.Size = UDim2.new(0, 100, 0, 50)
- OpenButton.Font = Enum.Font.SourceSans
- OpenButton.Text = "Open"
- OpenButton.TextColor3 = Color3.fromRGB(170, 255, 0)
- OpenButton.TextScaled = true
- OpenButton.TextSize = 14.000
- OpenButton.TextWrapped = true
- OpenButton.MouseButton1Down:connect(function()
- OpenMenu.Visible = false
- Menu.Visible = true
- end)
- function ExecuteCommand(Command)
- game:GetService("Players"):Chat(Command)
- end
- while wait(0) do
- ExecuteCommand(command)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement