local TextChatService = game:GetService("TextChatService") local channel = TextChatService.TextChannels.RBXGeneral math.randomseed(os.time()) local questions = { {q="What color is grass",A="green",B="blue",C="pink",D="purple",a="a"}, {q="What is 2+2",A="3",B="4",C="5",D="6",a="b"}, {q="Which animal barks",A="cat",B="dog",C="cow",D="fish",a="b"}, {q="What color is the sky",A="green",B="blue",C="red",D="yellow",a="b"}, {q="What is 5+5",A="8",B="9",C="10",D="11",a="c"}, {q="Which animal meows",A="dog",B="cat",C="cow",D="horse",a="b"}, {q="What planet do we live on",A="mars",B="venus",C="earth",D="jupiter",a="c"}, {q="What is 3x3",A="6",B="8",C="9",D="12",a="c"}, {q="What color is snow",A="black",B="white",C="blue",D="green",a="b"}, {q="Which one flies",A="fish",B="bird",C="dog",D="snake",a="b"}, {q="How many days in a week",A="5",B="6",C="7",D="8",a="c"}, {q="What color are bananas",A="red",B="blue",C="yellow",D="green",a="c"}, {q="Which animal says moo",A="dog",B="cat",C="cow",D="horse",a="c"}, {q="What is 10-5",A="3",B="4",C="5",D="6",a="c"}, {q="Which one swims",A="bird",B="fish",C="cat",D="cow",a="b"}, {q="What color is fire",A="blue",B="green",C="red",D="purple",a="c"}, {q="What is 4x2",A="6",B="8",C="10",D="12",a="b"}, {q="Which animal is biggest",A="mouse",B="dog",C="cat",D="elephant",a="d"}, {q="What comes after Friday",A="Sunday",B="Monday",C="Thursday",D="Saturday",a="d"}, {q="What color is milk",A="white",B="blue",C="green",D="yellow",a="a"}, {q="What is 6+1",A="6",B="7",C="8",D="9",a="b"}, {q="Which animal hops",A="snake",B="bird",C="frog",D="fish",a="c"}, {q="What color is coal",A="white",B="black",C="blue",D="red",a="b"}, {q="What is 9-3",A="5",B="6",C="7",D="8",a="b"}, {q="Which animal has stripes",A="lion",B="tiger",C="dog",D="cow",a="b"}, {q="What color is a stop sign",A="blue",B="green",C="red",D="yellow",a="c"}, {q="What is 7+2",A="8",B="9",C="10",D="11",a="b"}, {q="Which animal has a trunk",A="dog",B="cat",C="elephant",D="cow",a="c"}, {q="What color are apples",A="red",B="blue",C="purple",D="black",a="a"}, {q="What is 8+1",A="8",B="9",C="10",D="11",a="b"}, {q="Which animal lives in water",A="dog",B="cat",C="fish",D="cow",a="c"}, {q="What color is the sun",A="blue",B="green",C="yellow",D="purple",a="c"}, {q="What is 10+1",A="10",B="11",C="12",D="13",a="b"}, {q="Which animal has feathers",A="dog",B="bird",C="cat",D="cow",a="b"}, {q="What color is a strawberry",A="blue",B="green",C="red",D="purple",a="c"}, {q="What is 12-2",A="8",B="9",C="10",D="11",a="c"}, {q="Which animal eats carrots",A="dog",B="cat",C="rabbit",D="cow",a="c"}, {q="What color is a lemon",A="red",B="blue",C="yellow",D="green",a="c"}, {q="What is 4+4",A="6",B="7",C="8",D="9",a="c"}, {q="Which animal has spots",A="zebra",B="leopard",C="dog",D="cow",a="b"}, {q="What color is chocolate",A="white",B="brown",C="blue",D="green",a="b"}, {q="What is 6+4",A="8",B="9",C="10",D="11",a="c"}, {q="Which animal lives on a farm",A="lion",B="cow",C="tiger",D="bear",a="b"}, {q="What color is the ocean",A="green",B="blue",C="red",D="yellow",a="b"}, {q="What is 9+1",A="9",B="10",C="11",D="12",a="b"}, {q="Which animal has a shell",A="dog",B="cat",C="turtle",D="cow",a="c"}, {q="What color is an orange",A="blue",B="green",C="orange",D="purple",a="c"}, {q="What is 7+3",A="9",B="10",C="11",D="12",a="b"}, {q="Which animal is fast",A="snail",B="cheetah",C="cow",D="turtle",a="b"}, {q="What color is a pumpkin",A="blue",B="green",C="orange",D="purple",a="c"}, {q="What is 11-1",A="8",B="9",C="10",D="11",a="c"}, {q="Which animal roars",A="dog",B="cat",C="lion",D="cow",a="c"}, {q="What color is a cloud",A="black",B="white",C="red",D="green",a="b"}, {q="What is 8-2",A="5",B="6",C="7",D="8",a="b"}, {q="Which animal is small",A="elephant",B="mouse",C="cow",D="horse",a="b"}, } local current local function askQuestion() current = questions[math.random(1,#questions)] channel:DisplaySystemMessage( current.q .. " (A) " .. current.A .. " (B) " .. current.B .. " (C) " .. current.C .. " (D) " .. current.D ) end TextChatService.OnIncomingMessage = function(msg) if not msg.TextSource or not current then return end if string.lower(msg.Text) == current.a then channel:DisplaySystemMessage( msg.TextSource.Name .. " answered correctly! Yay🎉" ) task.wait(1) askQuestion() end end task.wait(2) askQuestion()