If you switch teams from Bright green, then go back to that team, it stops working.
function onPlayerEntered(newPlayer)
local stats = Instance.new("IntValue")
stats.Name = "leaderstats"
local points = Instance.new("IntValue")
points.Name = "Currency"
points.Value = 0
stats.Parent = newPlayer
points.Parent = stats
while true do
if newPlayer.TeamColor == BrickColor.new('Bright green') then
wait(5)
points.Value = points.Value + 50
end
end
end
game.Players.PlayerAdded:connect(onPlayerEntered)

1 comment
errors?