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

Would I need to add a spawn for this script?

Asked by
Yeevivor4 155
10 years ago
wait(6)

while true do
    p = game.Players:GetChildren()
    randplayer = p[math.random(#p)]
    randplayer.TeamColor = BrickColor.new("Camo")
    randplayer.Character:BreakJoints() 
    m = Instance.new("Message")
    m.Parent = workspace
    m.Text = randplayer.Name.." is the zombie! "
    wait(3)
    m.Parent = nil
    wait(300)
    for i = 1,#p do
        if p[i].TeamColor == BrickColor.new("Camo") then
            p[i].TeamColor = BrickColor.new("White")
        end
    end
    m.Parent = workspace
    m.Text = "End of game"
    wait(4)
    m.Parent = nil
end

1 answer

Log in to vote
1
Answered by
Bebee2 195
10 years ago

Just add a SpawnLocation beforehand set to the TeamColor Camo.

Ad

Answer this question