RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"create a chatbot gui that answers questions about Roblox Studio"
-- LocalScript in a ScreenGui with a TextBox and TextLabel local textBox = script.Parent.TextBox local textLabel = script.Parent.TextLabel local function answerQuestion(question) local lowerQuestion = string.lower(question) if string.find(lowerQuestion, "how to create a part") then return "To create a part in Roblox Studio, click on the 'Part' button in the 'Home' tab." elseif string.find(lowerQuestion, "how to script") then return "To script in Roblox Studio, you can use Lua language. Add a Script or LocalScript to the desired object and start writing your code." elseif string.find(lowerQuestion, "how to publish a game") then return "To publish a game in Roblox Studio, click on 'File' in the top left corner, then click on 'Publish to Roblox'. Follow the steps to publish your game." else return "Sorry, I don't have an answer for that question." end end textBox.FocusLost:Connect(function(enterPressed) if enterPressed then local question = textBox.Text local answer = answerQuestion(question) textLabel.Text = answer end end)