RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"code a chatbot GUI in roblox that I can ask questions about roblox studio to, its not working"
-- This example is a simple chatbot GUI that responds to specific questions about Roblox Studio. -- 1. Create a ScreenGui inside StarterGui -- 2. Inside the ScreenGui, create a TextBox named "UserInput" and a TextLabel named "ChatOutput" -- 3. Create a TextButton inside the ScreenGui and insert the following LocalScript inside the TextButton -- LocalScript inside the TextButton local textButton = script.Parent local userInput = textButton.Parent.UserInput local chatOutput = textButton.Parent.ChatOutput local function onButtonClicked() local question = userInput.Text:lower() if question == "how do i create a part?" then chatOutput.Text = "To create a part in Roblox Studio, click on the 'Part' button in the 'Home' tab." elseif question == "how do i change the color of a part?" then chatOutput.Text = "To change the color of a part, select the part and go to the 'Properties' window. Find the 'Color' property and click on the color box to change the color." elseif question == "how do i group objects?" then chatOutput.Text = "To group objects, select multiple objects in the Workspace, right-click on one of them, and choose 'Group'. You can also press Ctrl G." else chatOutput.Text = "Sorry, I don't have an answer for that question." end end textButton.MouseButton1Click:Connect(onButtonClicked)