Hello, people, I am wondering how to make a script where a message will be displayed after a certain amount of people win. And if I want to make a script where only one person can win how do I do that? My current script:
for i,v in pairs(game.Players:GetPlayers()) do
if game.Workspace.GamePlaying.Value == true then
game.Workspace.GamePlaying.Value = false
if HowManyIngame.Value > 0 then
UniversalText.Value = v.Name .. " Wins"
end
if HowManyIngame == 0 then
UniversalText = "No one won!"
end
end
end

2 comments
You need to keep track of who won. Why would "HowManyIngame" tell you who won?
I don't know man, I'm oblivious as to how to make a winner game.