Universal Script 📌
693 Views
307 Executions

Math quiz

Universal Script 📌
Yzn_lol
Yzn_lol10K executions
10 months 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

Nothing just good for waiting

View Raw
-- Endless Math Quiz with Win Streak (Respawn Safe)

local Players = game:GetService("Players")
local player = Players.LocalPlayer

-- Remove old GUI
local function clearOldGui()
	local oldGui = player.PlayerGui:FindFirstChild("MathQuizGui")
	if oldGui then
		oldGui:Destroy()
	end
end

local function createQuiz()
	clearOldGui()

	local gui = Instance.new("ScreenGui")
	gui.Name = "MathQuizGui"
	gui.ResetOnSpawn = false
	gui.Parent = player.PlayerGui

	-- Open Button
	local openButton = Instance.new("TextButton")
	openButton.Size = UDim2.new(0, 140, 0, 40)
	openButton.Position = UDim2.new(0, 20, 0.5, -20)
	openButton.Text = "Math Quiz"
	openButton.BackgroundColor3 = Color3.fromRGB(50, 200, 50)
	openButton.Parent = gui

	-- Quiz Frame
	local frame = Instance.new("Frame")
	frame.Size = UDim2.new(0, 350, 0, 270)
	frame.Position = UDim2.new(0.5, -175, 0.5, -135)
	frame.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
	frame.Visible = false
	frame.Parent = gui

	-- Close Button
	local closeButton = Instance.new("TextButton")
	closeButton.Size = UDim2.new(0, 30, 0, 30)


Comments

2
Log in to join the conversation. Login
elimiqueiasero's profile picture
elimiqueiasero10 months ago

ok

1
dbrerack's profile picture
dbrerack10 months ago

so funny=))

1