Back to Scripts
Battle

Battle

ScriptBlox
Free

Game: Battle Minigames

103 Views
0 Likes
0 Dislikes
Adammohamedgamal27

Adammohamedgamal27

offline

Features

Hello I'm new script

Tags

Battle minigames

Script Code

local MatchLength = 60 -- Seconds the round lasts
local IntermissionLength = 20 -- Seconds between rounds
local GameActive = false

while true do
	-- 1. Intermission
	print("Intermission started...")
	for i = IntermissionLength, 1, -1 do
		print("Match starting in: " .. i)
		task.wait(1)
	end

	-- 2. Start the Match
	GameActive = true
	print("The Battle Begins!")
	
	-- Logic to teleport players to the arena would go here
	
	for i = MatchLength, 1, -1 do
		if not GameActive then break end -- Exit early if everyone dies
		print("Time remaining: " .. i)
		task.wait(1)
	end

	-- 3. End the Match
	GameActive = false
	print("Match Over! Returning to lobby.")
	
	-- Logic to clean up the arena and reward the winner goes here
	
	task.wait(5) -- Short pause before the next intermission
end

Ratings & Reviews

No reviews yet. Be the first to review this script!

Comments (0)

Please login to comment

Login with Discord

Loading comments...