Universal Script πŸ“Œ
5.1k Views
54 Executions

roblox studio script that makes A math game

Universal Script πŸ“Œ
POOIPOOP
POOIPOOPPublished 10
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

-put this in server script service -server script BY CHATGPT

Updates

  1. Script edited: Create script

View Raw


local Players = game:GetService("Players")
local ServerStorage = game:GetService("ServerStorage")

local minPlayers = 10
local maxPlayers = 10
local gameStarted = false

local equations = {
    {question = "1+1", answer = 2, difficulty = "Easy"},
    {question = "900/1", answer = 900, difficulty = "Impossible"},
    {question = "9+9", answer = 18, difficulty = "Hard"},
    {question = "3+1", answer = 4, difficulty = "Easy"},
    {question = "(1000*2)+500", answer = 2500, difficulty = "Professional"},
}

local function assignSeats()
    local players = Players:GetPlayers()
    if #players >= minPlayers then
        gameStarted = true
        for i, player in ipairs(players) do
            local seat = workspace.Seats:FindFirstChild("Seat" .. i)
            if seat then
                player.Character:SetPrimaryPartCFrame(seat.CFrame)
            end
        end
    end
end

local function showEquation(player, equation)
    local gui = ServerStorage.QuestionGui:Clone()
    gui.Question.Text = equation.question
    gui.Parent = player.PlayerGui
end

local function checkAnswer(player, input, equation)
    if tonumber(input) == equation.answer then
        player.leaderstats.Winstreak.Value = player.leaderstats.Winstreak.Value + 1
        game:GetService("SoundService"):PlayLocalSound(workspace.WinSound) -- Play win sound


Comments

5
Log in to join the conversation. Login
POOIPOOP's profile picture
POOIPOOPUploader2 years ago

maybe it’s actually it works

1
POOIPOOP's profile picture
POOIPOOPUploader2 years ago

lol this is a script

1
isnone's profile picture
isnone2 years ago(edited)

lol

1
skyislands's profile picture
skyislands2 years ago(edited)

this website is NOT for Roblox Studio, its for hacks...

1
POOIPOOP's profile picture
POOIPOOPUploader2 years ago(edited)

good?

1

More universal scripts

See all
Script hub
50.6k
320.1k
Bumped 16 minutes ago

Script hub

Nameless Admin

Script hub
176.7k
1.6M
Bumped 2 hours ago
Key System
Script hub
46.5k
11.5k
Bumped 4 hours ago
Key System
Paid
Script hub
2.5M
798.8k
Bumped 5 hours ago
Key System

Script hub

#9 today

Verified script badgeLumin Hub | #1 | Insta Steal