Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local UI = script.Parent
- local MainFrame = UI.MainFrame
- local Input = MainFrame.Input
- local Output = MainFrame.Output
- MainFrame.Draggable = true
- game.Players.LocalPlayer:GetMouse().KeyDown:Connect(function(key)
- if key == "'" then
- Input:CaptureFocus()
- spawn(function()
- Input.Text = ""
- end)
- end
- end)
- Input.FocusLost:Connect(function(enterPressed)
- if enterPressed then
- game.ReplicatedStorage.Remotes.ExecuteCommand:FireServer(Input.Text)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement