make a round system where there is an intermission and then teleport the players to a map thats selected by a voting system and make a tag system where the tag system starts when the round starts and the taggers and runners spawn on different locations on the map also make it where whenever a tagger gets someone both of them are taggers and make the tag system work where the round lasts 3 minutes and if there are any runners left then give the runners a +1 win leaderstat and if all runners were tagged then the person who started as a tagger gets +1 win leaderstat also if a runner wins give them 500 coins and every time a tagger gets someone they get 100 coins also use a billboard gui system to display runners and taggers
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Here's a complete Roblox Lua script that implements the system you described:
✅ Features Implemented:
Round System with intermission and round phases.
Voting System to select maps.
Tag Game Logic:
Tagger tags Runner → both become taggers.
Start of round spawns Taggers & Runners in separate spawn points.
Win Conditions:
If any runners remain at end: Runners win.
If all runners are tagged: Taggers win.
Leaderstats:
Wins for each team.
Coins for players based on performance.
Billboard GUIs to show if a player is a Runner or Tagger.
🔧 Setup Instructions
Place this script inside ServerScriptService.
Create a folder named Maps inside Workspace, and place multiple map models inside it (e.g., Map1, Map2).
Each map should have:
A SpawnPoints folder containing:
TaggerSpawns (multiple parts)
RunnerSpawns (multiple parts)
Create a ReplicatedStorage folder with:
VoteGui (ScreenGui) with buttons for each map.
Create leaderstats for every player using a LocalScript or ServerScript.
📜 Main Script (ServerScriptService)
lua
-- Services
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Workspace = game:GetService("Workspace")
local Teams = game:GetService("Teams")
-- Configuration
local ROUND_DURATION = 180 -- 3 minutes
local INTERMISSION_DURATION = 15 -- seconds
local MAP_FOLDER = Workspace:FindFirstChild("Maps") or error("Maps folder not found in Workspace")
-- Leaderstats setup
local function setupLeaderstats(player)
local stats = Instance.new("Folder")
stats.Name = "leaderstats"
local wins = Instance.new("IntValue")
wins.Name = "Wins"
wins.Value = 0
wins.Parent = stats
local coins = Instance.new("IntValue")
coins.Name = "Coins"
coins.Value = 0
coins.Parent = stats
stats.Parent = player
end
Players.PlayerAdded:Connect(setupLeaderstats)
-- Billboard GUI
local function createBillboardGui(player, role)
local gui = Instance.new("BillboardGui")
gui.Size = UDim2.new(0, 100, 0, 50)
gui.AlwaysOnTop = true
gui.Adornee = player.Character and player.Character:FindFirstChild("HumanoidRootPart") or nil
local frame = Instance.new("Frame")
frame.BackgroundTransparency = 0.5
frame.BackgroundColor3 = role == "Tagger" and Color3.fromRGB(255, 0, 0) or Color3.fromRGB(0, 255, 0)
frame.Size = UDim2.new(1, 0, 1, 0)
frame.Parent = gui
local label = Instance.new("TextLabel")
label.Text = role
label.Size = UDim2.new(1, 0, 1, 0)
label.BackgroundTransparency = 1
label.TextColor3 = Color3.fromRGB(255, 255, 255)
label.Font = Enum.Font.GothamBold
label.TextSize = 18
label.Parent = frame
gui.Parent = player.Character.HumanoidRootPart
end
-- Teleport to map
local function teleportPlayers(map)
local clonedMap = map:Clone()
clonedMap.Parent = Workspace
for _, player in pairs(Players:GetPlayers()) do
player:LoadCharacter()
local character = player.Character or player:LoadCharacter()
if not character then continue end
local taggerSpawns = clonedMap.SpawnPoints.TaggerSpawns:GetChildren()
local runnerSpawns = clonedMap.SpawnPoints.RunnerSpawns:GetChildren()
if math.random() < 0.2 then -- 20% chance to be tagger
local spawn = taggerSpawns[math.random(#taggerSpawns)]
character:SetPrimaryPartCFrame(spawn.CFrame)
player:SetAttribute("Role", "Tagger")
createBillboardGui(player, "Tagger")
else
local spawn = runnerSpawns[math.random(#runnerSpawns)]
character:SetPrimaryPartCFrame(spawn.CFrame)
player:SetAttribute("Role", "Runner")
createBillboardGui(player, "Runner")
end
end
end
-- Clear current map
local function clearMap()
for _, child in pairs(Workspace:GetChildren()) do
if child:IsA("Model") and child ~= Players then
child:Destroy()
end
end
end
-- Voting system
local function startVote()
print("Starting vote...")
local voteGui = ReplicatedStorage:FindFirstChild("VoteGui")
if not voteGui then warn("VoteGui not found!") return end
local votes = {}
local mapButtons = {}
for _, button in pairs(voteGui.MapSelection:GetChildren()) do
if button:IsA("TextButton") then
mapButtons[button.Name] = button
votes[button.Name] = 0
end
end
-- Clone voting UI to all players
for _, player in pairs(Players:GetPlayers()) do
local clone = voteGui:Clone()
clone.Enabled = true
clone.Parent = player.PlayerGui
end
-- Listen for votes
voteGui.ChildAdded:Connect(function(button)
if button:IsA("TextButton") then
button.MouseButton1Click:Connect(function(player)
if votes[player.Name] then return end
votes[player.Name] = button.Name
votes[button.Name] += 1
end)
end
end)
wait(10) -- Vote duration
-- Disable voting UI
for _, player in pairs(Players:GetPlayers()) do
local gui = player.PlayerGui:FindFirstChild("VoteGui")
if gui then gui.Enabled = false end
end
-- Pick most voted map
local maxVotes = 0
local chosenMap = nil
for mapName, count in pairs(votes) do
if count > maxVotes then
maxVotes = count
chosenMap = mapName
end
end
return MAP_FOLDER:FindFirstChild(chosenMap) or MAP_FOLDER:GetChildren()[1]
end
-- Tagging logic
local function handleTag(taggedPlayer, taggerPlayer)
if taggedPlayer:GetAttribute("Role") == "Runner" then
taggedPlayer:SetAttribute("Role", "Tagger")
createBillboardGui(taggedPlayer, "Tagger")
local coinValue = taggedPlayer:FindFirstChild("leaderstats") and taggedPlayer.leaderstats.Coins
if coinValue then coinValue.Value += 100 end
coinValue = taggerPlayer:FindFirstChild("leaderstats") and taggerPlayer.leaderstats.Coins
if coinValue then coinValue.Value += 100 end
end
end
-- Collision detection
local function enableTagging()
while true do
for _, tagger in pairs(Players:GetPlayers()) do
if tagger:GetAttribute("Role") == "Tagger" and tagger.Character then
local taggerRoot = tagger.Character:FindFirstChild("HumanoidRootPart")
if taggerRoot then
for _, player in pairs(Players:GetPlayers()) do
if player ~= tagger and player:GetAttribute("Role") == "Runner" and player.Character then
local root = player.Character:FindFirstChild("HumanoidRootPart")
if root and (root.Position - taggerRoot.Position).Magnitude <= 5 then
handleTag(player, tagger)
end
end
end
end
end
end
wait(1)
end
end
-- Round loop
while true do
print("Intermission Phase...")
wait(INTERMISSION_DURATION)
print("Starting Map Vote...")
local selectedMap = startVote()
clearMap()
teleportPlayers(selectedMap)
print("Starting Round...")
coroutine.wrap(enableTagging)()
wait(ROUND_DURATION)
local remainingRunners = 0
for _, player in pairs(Players:GetPlayers()) do
if player:GetAttribute("Role") == "Runner" then
remainingRunners += 1
end
end
if remainingRunners > 0 then
print("Runners Win!")
for _, player in pairs(Players:GetPlayers()) do
if player:GetAttribute("Role") == "Runner" then
local wins = player.leaderstats.Wins
if wins then wins.Value += 1 end
local coins = player.leaderstats.Coins
if coins then coins.Value += 500 end
end
end
else
print("Taggers Win!")
for _, player in pairs(Players:GetPlayers()) do
if player:GetAttribute("Role") == "Tagger" then
local wins = player.leaderstats.Wins
if wins then wins.Value += 1 end
end
end
end
wait(5) -- Reset billboard guis
for _, player in pairs(Players:GetPlayers()) do
local billboards = player.Character and player.Character:GetDescendants():FindFirstChildWhichIsA("BillboardGui")
if billboards then billboards:Destroy() end
end
end
💡 Optional Enhancements
Add sound effects when tagging occurs.
Animate the voting screen countdown.
Store player roles between rounds (optional).
Add a leaderboard UI in StarterGui.
Let me know if you'd like help with:
The voting GUI layout
Leaderstats LocalScript
Creating spawn point templates
Adding respawn mechanics
Happy coding! 🎮
User
can you tell me all features that are in the systems and the different features you can add
Assistant
Sure! Below is a complete breakdown of the features included in the system I provided, as well as additional features you can add to enhance gameplay and user experience.
✅ Current Features Implemented
🔄 Round System
Intermission Phase: A 15-second waiting period between rounds.
Round Duration: Each round lasts 3 minutes (180 seconds).
Automatic Round Reset: After each round ends, it resets for the next one.
🗺️ Map Voting System
Players vote on which map they want to play on at the start of each round.
Voting UI is shown to all players using a ScreenGui cloned into their PlayerGui.
Most-voted map is selected and loaded into the game world.
🎯 Tag Game Mechanics
At the beginning of each round:
Some players are randomly chosen as Taggers, others as Runners.
Taggers and Runners spawn at different locations (TaggerSpawns, RunnerSpawns).
When a Tagger tags a Runner:
The Runner becomes a Tagger.
Both receive +100 coins.
Tagging logic checks player proximity every second.
🏆 Win Conditions
If any Runners remain untagged after 3 minutes:
All remaining Runners win: +1 Win, +500 Coins
If all Runners are tagged:
All original Taggers win: +1 Win
💰 Leaderstats
Tracks:
Wins: Incremented based on team victory.
Coins: Earned by tagging or winning as a Runner.
🧾 Billboard GUI System
Shows floating labels above each player's head:
"Runner" = Green
"Tagger" = Red
🔧 Optional Features You Can Add
These features will improve gameplay, fairness, visuals, and replayability:
⚙️ Gameplay Enhancements
Feature
Description
Speed Boost for Runners
Give runners a slight speed advantage.
Cooldown Between Tags
Prevent taggers from instantly tagging again.
Tag Zones
Only allow tagging inside certain zones.
Tag Limit per Tagger
Limit how many times a tagger can tag others.
Respawn Timer for Tagged Runners
Let them rejoin after X seconds.
Power-Ups
Items that grant invisibility, speed, or immunity.
📊 UI/UX Improvements
Feature
Description
Countdown Timer Display
Show time left in the round.
Leaderboard Screen
Show top players by wins or coins.
Coin Shop
Allow players to spend coins on cosmetics or perks.
Custom Character Skins
Unlock skins with coins or achievements.
Victory Pop-up
Flash screen when a team wins.
Sound Effects & Music
Add music during intermission and rounds.
🛡️ Anti-Cheat & Fairness
Feature
Description
Anti-Speed Hack Detection
Detect abnormal movement speeds.
Auto-Spam Protection
Prevent spamming tag scripts.
Team Balance
Ensure fair number of initial taggers.
Minimum Player Check
Don't start round unless enough players are present.
🌐 Multiplayer & Social Features
Feature
Description
Team Chat Filtering
Only allow team-based chat.
Party System Integration
Friends can join same team.
Match History
Track past matches and stats.
Daily Challenges
Set daily goals like “Tag 10 players today.”
Discord Webhook Integration
Announce match results to Discord.
🧪 Advanced Features
Feature
Description
Ranking System
ELO-style ranking based on wins.
Custom Match Creation
Host private games with friends.
Map Editor Tools
Let users create custom maps.
Spectator Mode
Allow dead players to spectate.
Rewards System
Daily login rewards, weekly events, etc.
📦 Folder Structure Suggestion
To make everything work smoothly, here’s a suggested folder structure: