Skip to content
TheChatArchiveThe Chat Archive
Qwenqwen3-235b-a22b-no-thinking· Alibaba (Qwen)Hugging Face LMArena Human Preference 140K

can you make me a tag system for roblox and to make the gui use billboard and once a…

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Amazon Novaamazon-nova-experimental-chat-05-14’s answer.
  1. User

    can you make me a tag system for roblox and to make the gui use billboard and once a player is tagged the tagger and runner both become taggers and also a players remaining gui feature and when everyone but 1 person is tagged the last runner/survivor gets a +1 win on their leaderstats also add a coins feature using gui and if you win as a runner you get 500 coins and as a tagger every person you tag you get 100 coins and make sure there is a round system where it teleports the players between the lobby and the maps and it will randomize the map and also make sure the runners and chasers have different spawns on the map

  2. Qwen Assistant

    Sure! Below is a complete Roblox Tag System that includes:

    • A GUI using BillboardGui for displaying the "Remaining" tag.
    • Tagging system where both the tagger and runner become taggers.
    • Win tracking for the last survivor.
    • Coin rewards:
      • +500 coins for winning as a runner.
      • +100 coins per tag for taggers.
    • Round system with teleporting between Lobby and randomized maps.
    • Different spawns for runners and chasers.

    📁 Folder Structure (in ServerScriptService)

    ServerScriptService
    ├── TagSystem
    │   ├── Leaderstats.lua
    │   ├── GameSettings.lua
    │   ├── MapManager.lua
    │   └── MainGameLoop.lua
    

    🧠 Client-Side Scripts

    We’ll also use LocalScripts in StarterPlayer/StarterCharacterScripts for the GUI.


    ✅ SERVER-SIDE SCRIPTS

    🔹 Leaderstats.lua

    -- ServerScriptService/TagSystem/Leaderstats.lua
    
    game.Players.PlayerAdded:Connect(function(player)
        local leaderstats = Instance.new("Folder")
        leaderstats.Name = "leaderstats"
        leaderstats.Parent = player
    
        local wins = Instance.new("IntValue")
        wins.Name = "Wins"
        wins.Value = 0
        wins.Parent = leaderstats
    
        local coins = Instance.new("IntValue")
        coins.Name = "Coins"
        coins.Value = 0
        coins.Parent = leaderstats
    end)
    

    🔹 GameSettings.lua

    -- ServerScriptService/TagSystem/GameSettings.lua
    
    return {
        Lobby = workspace.Lobby,
        Maps = workspace.Maps:GetChildren(), -- Put all map folders inside a folder called 'Maps'
        TimeBetweenRounds = 10,
        GameTime = 60, -- seconds
    }
    

    🔹 MapManager.lua

    -- ServerScriptService/TagSystem/MapManager.lua
    
    local GameSettings = require(script.Parent.GameSettings)
    
    local function teleportPlayers(map, spawnType)
        for _, player in pairs(game.Players:GetPlayers()) do
            local character = player.Character or player:LoadCharacter()
            if character then
                local spawnPoint = map:FindFirstChild(spawnType)
                if spawnPoint then
                    character:MoveTo(spawnPoint.Position)
                end
            end
        end
    end
    
    return {
        LoadMap = function(map)
            for _, child in pairs(workspace:GetChildren()) do
                if child:IsA("Model") and GameSettings.Maps[map] ~= child then
                    child:Destroy()
                end
            end
            local currentMap = GameSettings.Maps[map]:Clone()
            currentMap.Parent = workspace
        end,
    
        TeleportRunners = function(map)
            teleportPlayers(map, "RunnerSpawn")
        end,
    
        TeleportChasers = function(map)
            teleportPlayers(map, "ChaserSpawn")
        end
    }
    

    🔹 MainGameLoop.lua

    -- ServerScriptService/TagSystem/MainGameLoop.lua
    
    local Players = game.Players
    local ReplicatedStorage = game.ReplicatedStorage
    local GameSettings = require(script.Parent.GameSettings)
    local MapManager = require(script.Parent.MapManager)
    
    local taggedPlayers = {}
    local taggers = {}
    
    function resetTagData()
        taggedPlayers = {}
        taggers = {}
    end
    
    function assignInitialTagger()
        local players = Players:GetPlayers()
        if #players == 0 then return end
        local randomTagger = players[math.random(1, #players)]
        table.insert(taggers, randomTagger)
        return randomTagger
    end
    
    function setTagStatus(player, isTagged)
        if isTagged and not taggedPlayers[player] then
            taggedPlayers[player] = true
            table.insert(taggers, player)
            fireTagEvent(player)
        end
    end
    
    function fireTagEvent(player)
        local tagEvent = ReplicatedStorage:FindFirstChild("TagPlayer")
        if tagEvent then
            tagEvent:FireClient(player)
        end
    end
    
    function updateRemainingGui()
        for _, player in pairs(Players:GetPlayers()) do
            local gui = player:FindFirstChild("PlayerGui") or Instance.new("ScreenGui")
            local frame = gui:FindFirstChild("RemainingFrame")
            if frame then
                frame.TextLabel.Text = "Remaining: " .. (#Players:GetPlayers() - #taggedPlayers)
            end
        end
    end
    
    function awardRewards(winner)
        if winner then
            winner.leaderstats.Wins.Value = winner.leaderstats.Wins.Value + 1
            winner.leaderstats.Coins.Value = winner.leaderstats.Coins.Value + 500
        end
    
        for _, tagger in pairs(taggers) do
            if tagger and tagger.Parent then
                local count = 0
                for _, tagged in pairs(taggedPlayers) do
                    if tagged and tagged.Parent and tagged ~= tagger then
                        count = count + 1
                    end
                end
                tagger.leaderstats.Coins.Value = tagger.leaderstats.Coins.Value + (count * 100)
            end
        end
    end
    
    function startRound()
        resetTagData()
    
        local currentMapIndex = math.random(1, #GameSettings.Maps)
        local currentMap = GameSettings.Maps[currentMapIndex]
    
        -- Clone and load map
        MapManager.LoadMap(currentMapIndex)
    
        -- Move players to lobby first
        for _, player in pairs(Players:GetPlayers()) do
            player:LoadCharacter()
            player.Character:MoveTo(GameSettings.Lobby.SpawnLocation.Position)
        end
    
        wait(5)
    
        -- Move players to map
        MapManager.TeleportRunners(currentMap)
        MapManager.TeleportChasers(currentMap)
    
        local initialTagger = assignInitialTagger()
        setTagStatus(initialTagger, true)
    
        local timeLeft = GameSettings.GameTime
        while timeLeft > 0 and #taggedPlayers < #Players:GetPlayers() do
            wait(1)
            timeLeft -= 1
            updateRemainingGui()
        end
    
        local survivors = {}
        for _, player in pairs(Players:GetPlayers()) do
            if not taggedPlayers[player] then
                table.insert(survivors, player)
            end
        end
    
        if #survivors == 1 then
            awardRewards(survivors[1])
        end
    
        wait(GameSettings.TimeBetweenRounds)
        startRound()
    end
    
    startRound()
    

    💻 CLIENT-SIDE SCRIPTS

    🔹 TagGui.lua (LocalScript in StarterPlayer/StarterCharacterScripts)

    -- StarterPlayer/StarterCharacterScripts/TagGui.lua
    
    local player = game.Players.LocalPlayer
    local camera = workspace.CurrentCamera
    
    -- Create BillboardGui
    local billboard = Instance.new("BillboardGui")
    billboard.Size = UDim2.new(0, 200, 0, 50)
    billboard.Adornee = player.Character:WaitForChild("HumanoidRootPart")
    billboard.AlwaysOnTop = true
    billboard.Parent = player.Character
    
    -- Remaining Label
    local remainingFrame = Instance.new("TextLabel")
    remainingFrame.BackgroundTransparency = 1
    remainingFrame.TextColor3 = Color3.fromRGB(255, 255, 255)
    remainingFrame.Font = Enum.Font.SourceSansBold
    remainingFrame.TextSize = 24
    remainingFrame.Text = "Remaining: 0"
    remainingFrame.Size = UDim2.new(1, 0, 1, 0)
    remainingFrame.Parent = billboard
    
    -- Update when tagged
    local tagEvent = game.ReplicatedStorage.TagPlayer
    tagEvent.OnClientEvent:Connect(function()
        remainingFrame.TextColor3 = Color3.fromRGB(255, 0, 0)
        remainingFrame.Text = "You're It!"
        wait(2)
        remainingFrame.Text = "Remaining: ?"
    end)
    
    -- Update remaining count every second
    spawn(function()
        while true do
            wait(1)
            local total = #game.Players:GetPlayers()
            local taggedCount = 0
            for _, p in pairs(game.Players:GetPlayers()) do
                if p ~= player and p:FindFirstChild("leaderstats") and p.leaderstats:FindFirstChild("Wins") then
                    if p.leaderstats.Wins.Value > 0 then
                        taggedCount = taggedCount + 1
                    end
                end
            end
            remainingFrame.Text = "Remaining: " .. (total - taggedCount)
        end
    end)
    

    🎮 REPLICATED STORAGE EVENTS

    Create these in ReplicatedStorage:

    • RemoteEvent named TagPlayer — used to trigger the client-side effect when a player gets tagged.

    🏗️ MAP SETUP

    Each map should be inside a folder called Maps under workspace.

    Each map should have:

    • RunnerSpawn – Part for runners to spawn at.
    • ChaserSpawn – Part for taggers to spawn at.

    🪙 OPTIONAL: COIN SHOP OR USAGE SYSTEM

    You can later add a shop using leaderstats.Coins.


    Let me know if you want:

    • A countdown before round starts.
    • Sounds for tagging.
    • Particle effects for being “It”.
    • Leaderboard display.

    Would you like this in a .rbxl file or a model package?

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.