Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do i execute a change team script?

Asked by 10 years ago

how can i make this script work

function checker() c = game.Players:GetChildren() for num, obj in pairs(c) do if obj.Character.Humanoid.Health == 0 then if obj.Teamcolor == BrickColor.new("Bright blue") then obj.Teamcolor = BrickColor.new("Bright red")

checker() -- this to loop the checking
end end end wait() -- this is to loop the checking checker() end checker()

2 answers

Log in to vote
0
Answered by 10 years ago

the script is

function checker()
c = game.Players:GetChildren()
    for num, obj in pairs(c) do
        if obj.Character.Humanoid.Health == 0 then
        if obj.Teamcolor == BrickColor.new("Bright blue") then 
            obj.Teamcolor =  BrickColor.new("Bright red")   

checker() -- this to loop the checking  
end
end
end
wait() --  this is to loop the checking
checker()
end
checker()
0
that i want to work raymandon 0 — 10y
Ad
Log in to vote
0
Answered by 10 years ago

make sure the color off the team is the same in the script and the team leaderboard then it will work

0
it is raymandon 0 — 10y

Answer this question