Hey there, devs!
So, I’ve been working on a TPS game (aka Third Person Shooter) recently. Almost everything is done! But I’m a little stuck on the game-mode part.
I’m trying to achieve a deathmatch game-mode (Basically FFA deathmatch). You need to get to 20 kills to win the game.
I have tried making one multiple times, but failed. It’d be a pleasure if anybody could help! Thanks!
PaperBrr
(Paper)
#2
Here’s my solution -
When this type of game mode starts -
- Delete all the teams in the game, so there is no problem with players damaging other players.
- Use ray casting to detect when a player kills another player (possibly combined with the
Humanoid.Died
Event and pass it into leaderstats.
- While the game mode is on, keep iterating through all your players and check if anyone has 20 kills. If anyone does, then exit the function.
I hope it helps!