-- [[ 🧮 Math Question Bot | By @mizuscripts ]] local TextChatService = game:GetService("TextChatService") local ReplicatedStorage = game:GetService("ReplicatedStorage") -- Send message (supports both new & legacy chat systems) local function SendChat(msg) if TextChatService.ChatVersion == Enum.ChatVersion.TextChatService then local ch = TextChatService.TextChannels:FindFirstChild("RBXGeneral") if ch then ch:SendAsync(msg) end else local ev = ReplicatedStorage:FindFirstChild("DefaultChatSystemChatEvents") if ev then local say = ev:FindFirstChild("SayMessageRequest") if say then say:FireServer(msg, "All") end end end end -- Math Question ( script by @mizuscripts) local function RandomMath() local operations = {"+", "-", "/"} local op = operations[math.random(1, #operations)] local a = math.random(10, 50) local b = math.random(1, 10) local question, answer if op == "+" then question = a .. " + " .. b answer = a + b elseif op == "-" then question = a .. " - " .. b answer = a - b elseif op == "/" then -- Divide ( script by @mizuscripts) question = a .. " ÷ " .. b answer = math.floor((a / b) * 10) / 10 end return question, answer end while task.wait(16) do local q, a = RandomMath() SendChat("🧮 Question: " .. q .. " = ?") task.wait(16) SendChat("✅ Answer: " .. a) end