Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I make a one person team?

Hello, I've come here to ask about how do I make a one team person like in the Stalker and many more. I've once ask this in Roblox Forum but without much help so I'm here ask you. I have only one clue here.

player = game.Players:GetPlayers()

chosen = math.random(#player)

game.Players[chosen].TeamColor = BrickColor.new("Bright green")

1 answer

local players = game.Players:GetPlayers()
local stalker = players[math.random(#players)]

for i,v in pairs(players) do 
    if v.Name ~= stalker.Name then 
        v.TeamColor = BrickColor.new("Bright red")
    else
        v.TeamColor = BrickColor.new("Bright green")
    end
    v:LoadCharacter()
end

1 comment

0

Thanks! :D

This discussion is preserved as it was. New answers, comments, and votes are closed.