Below is a trimmed-down “v2” of the TagManager that drops the SAFE / immunity idea and, instead, lets BOTH players stay (or become) “It” after a successful tag. The changes are small, so I’ll first show the diff-style edits, then the full replacement script in case you just want to paste-and-go.
🚩 WHAT CHANGES?
- No more
IsImmune attribute or blue “SAFE” state.
currentItPlayer is no longer needed—the game can have many Its.
- When an It touches a runner, we simply set
IsIt = true on the runner; the toucher stays It as well.
- UI only needs two colours: Red (“IT!”) and Green (“Runner”).
🟢 QUICK PATCH (diff-style)
-- === REMOVE THESE LINES =========================================
local TAG_BACK_IMMUNITY_TIME = 3
local IMMUNE_COLOR = Color3.fromRGB(85, 170, 255)
player:SetAttribute("IsImmune", false)
player:GetAttributeChangedSignal("IsImmune"):Connect(...)
---------------------------------------------------------------
-- === CHANGE THE GUI UPDATE ======================================
if isIt then
statusLabel.Text = "IT!"
statusLabel.TextColor3 = IT_COLOR
else
statusLabel.Text = "Runner"
statusLabel.TextColor3 = RUNNER_COLOR
end
---------------------------------------------------------------
-- === REPLACE setItPlayer WITH: ==================================
local function tagPlayer(playerToTag)
if not playerToTag or playerToTag:GetAttribute("IsIt") then return end
playerToTag:SetAttribute("IsIt", true)
print(playerToTag.Name .. " has been tagged and is now It!")
end
---------------------------------------------------------------
-- === EDIT onCharacterTouched ====================================
-- 5. TAG SUCCESSFUL!
tagPlayer(targetPlayer)
---------------------------------------------------------------
-- === CLEAN-UP: delete any code that referenced IsImmune,
-- TAG_BACK_IMMUNITY_TIME, or currentItPlayer.
If you’re comfortable editing your original script, the above is all you need.
📋 COMPLETE REPLACEMENT SCRIPT
Paste this into a fresh Script in ServerScriptService (still assumes the same TagIndicator BillboardGui in ReplicatedStorage).
--------------------------------------------------------------------
-- TAG MANAGER (Both players stay "It" after a tag)
--------------------------------------------------------------------
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
-- === CONFIG ======================================================
local RUNNER_COLOR = Color3.fromRGB( 85,255,127) -- Green
local IT_COLOR = Color3.fromRGB(255, 85, 85) -- Red
-- === INTERNALS ===================================================
local TagIndicatorTemplate = ReplicatedStorage:WaitForChild("TagIndicator")
--------------------------------------------------------------------
-- GUI UPDATE
--------------------------------------------------------------------
local function updatePlayerIndicator(player)
local character = player.Character
if not character then return end
local head = character:FindFirstChild("Head")
local tagGui = head and head:FindFirstChild("TagIndicator")
if not tagGui then return end
local statusLabel = tagGui.StatusLabel
if player:GetAttribute("IsIt") then
statusLabel.Text = "IT!"
statusLabel.TextColor3 = IT_COLOR
else
statusLabel.Text = "Runner"
statusLabel.TextColor3 = RUNNER_COLOR
end
end
--------------------------------------------------------------------
-- TAGGING HELPERS
--------------------------------------------------------------------
local function tagPlayer(playerToTag)
if not playerToTag or playerToTag:GetAttribute("IsIt") then return end
playerToTag:SetAttribute("IsIt", true)
print(playerToTag.Name .. " has been tagged and is now It!")
end
local function onCharacterTouched(otherPart, toucherCharacter)
local toucherPlayer = Players:GetPlayerFromCharacter(toucherCharacter)
if not toucherPlayer or not toucherPlayer:GetAttribute("IsIt") then return end
local targetCharacter = otherPart.Parent
local targetPlayer = Players:GetPlayerFromCharacter(targetCharacter)
if not targetPlayer or targetPlayer == toucherPlayer then return end
local hum = targetCharacter:FindFirstChildOfClass("Humanoid")
if not hum or hum.Health <= 0 then return end
tagPlayer(targetPlayer)
end
--------------------------------------------------------------------
-- CHARACTER / PLAYER HOOKUPS
--------------------------------------------------------------------
local function onCharacterAdded(character, player)
local head = character:WaitForChild("Head")
TagIndicatorTemplate:Clone().Parent = head
updatePlayerIndicator(player)
-- Touch detection (HumanoidRootPart + Torso backup)
character.PrimaryPart.Touched:Connect(function(part)
onCharacterTouched(part, character)
end)
local torso = character:FindFirstChild("UpperTorso") or character:FindFirstChild("Torso")
if torso then
torso.Touched:Connect(function(part)
onCharacterTouched(part, character)
end)
end
end
local function onPlayerAdded(player)
player:SetAttribute("IsIt", false)
-- React to attribute changes so GUI updates instantly
player:GetAttributeChangedSignal("IsIt"):Connect(function()
updatePlayerIndicator(player)
end)
player.CharacterAdded:Connect(function(char)
onCharacterAdded(char, player)
end)
-- If this is the very first player in the server, make them It
if #Players:GetPlayers() == 1 then
tagPlayer(player)
end
end
--------------------------------------------------------------------
-- INIT
--------------------------------------------------------------------
Players.PlayerAdded:Connect(onPlayerAdded)
for _, plr in ipairs(Players:GetPlayers()) do
task.spawn(onPlayerAdded, plr)
end
📝 THINGS TO KEEP IN MIND
• Because multiple players can be “It,” you no longer need to track a single currentItPlayer; just let the IsIt attribute speak for itself.
• You might eventually want a “round over” condition (e.g., if every player:GetAttribute("IsIt") == true then restart round). That’s optional and easy to add later.
• Since there’s no immunity, two Its can tag each other indefinitely—touch checks already ignore turning an It into It again, so it’s harmless performance-wise.
Have fun tagging! 🏃💨