-- [[ Rscripts Risk Notice ]] -- This script is not verified by rscripts.net. Deal with caution. -- -- Stay safe: -- • Never log in on unofficial Roblox sites or lookalike domains. -- • Real Roblox links use roblox.com (check the .com ending). -- • Treat fake Roblox login / "claim reward" pages as phishing. -- [[ End Rscripts Risk Notice ]] local gui = script.Parent -- Main Frame local frame = Instance.new("Frame") frame.Name = "QuestionFrame" frame.Size = UDim2.new(0, 400, 0, 300) frame.Position = UDim2.new(0.5, -200, 0.5, -150) frame.BackgroundColor3 = Color3.fromRGB(170, 100, 255) frame.Parent = gui -- Question text local question = Instance.new("TextLabel") question.Size = UDim2.new(1, -20, 0, 80) question.Position = UDim2.new(0, 10, 0, 20) question.BackgroundTransparency = 1 question.TextScaled = true question.TextWrapped = true question.Parent = frame -- Answer buttons local buttons = {} for i, letter in ipairs({"A", "B", "C"}) do local button = Instance.new("TextButton") button.Size = UDim2.new(0, 110, 0, 60) button.Position = UDim2.new(0, 15 + ((i - 1) * 130), 0, 170) button.TextScaled = true button.Parent = frame buttons[letter] = button end -- Questions local questions = { { text = "What is 2 + 2?", answers = {"3", "4", "5"}, correct = "B" }, { text = "What color is the sky?", answers = {"Blue", "Green", "Red"}, correct = "A" }, { text = "How many days are in a week?", answers = {"5", "6", "7"}, correct = "C" }, { text = "Which animal says 'meow'?", answers = {"Dog", "Cat", "Cow"}, correct = "B" }, { text = "What is 10 - 3?", answers = {"7", "8", "9"}, correct = "A" } } local currentQuestion -- Show a random question local function newQuestion() currentQuestion = questions[math.random(1, #questions)] question.Text = currentQuestion.text buttons.A.Text = "A) " .. current