How do u make a last player standing win?

I am making a sword game and i wanna know how to make a last player standing win?

1 Like

You can maybe make a loop through all the players and check if they are alive or stood on a particular part.

This video could help: How To Make A Roblox Game - 2022 Beginner Tutorial! - YouTube

It shows how to make a whole sword fighting game

You can create a script that loops through all the players, that then fires an RemoteEvent that triggers the winning script.

I think the easiest way to do that is when the game starts add all the players into a table. You would remove the players once they die or leave the game or whatever. Then once the table only has 1 player left then they are the winner.