wait(60)
Function = Game.Players.Team
Team = ReallyRed
end
Im trying to make a script that changes players team to read every minute and then back to blue every 3 minutes.
wait(60)
Function = Game.Players.Team
Team = ReallyRed
end
Im trying to make a script that changes players team to read every minute and then back to blue every 3 minutes.
lol no it wont work @dudemanjude
while true do
wait(60)
for i, v in pairs(game.Players:GetPlayers()) do
v.TeamColor=BrickColor.new("Bright red")
end
wait(180)
for i, v in pairs(game.Players:GetPlayers()) do
v.TeamColor=BrickColor.new("Bright blue")
end
end
That'd work but ewww indent your code
I see no reason to indent code in a script this short
Try this:
game.Players.PlayerAdded:connect(function(player)
while true do
wait(60)
player.TeamColor = BrickColor.new("") -- Put the color of the red team here in the quotes
wait(180)
player.TeamColor = BrickColor.new("") -- Put the color of the blue team here in the quotes
end
end)
That should work and if it doesn't then comment on this answer. I hope that helps!
Thanks :D
Your welcome :D
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
Ahn... You must be new here.
Yeah dude.Im really bad at it,but I hope I'll learn lua in at least 2 or 3 years.