Health based on players count...

I needed to add a function that gives a player an amount of health regarding to the count of enemy players who joined the game, for example if he gets 10 HP when vs 1 player but 100 hp when vs 10 players…etc

Any method to do that please? Thanks.

Use the /Fortnite.com/Teams GetAgents method and then .Length the array.
Otherwise just maintain an array or a map of all current players, by getting the current playlist and managing it with PlayerAdded and PlayerRemoved.

And obviously do the calculations you have in mind, and then just set the HP of the player.

Dear Mark, I can’t say this is not a solution cuz it’s really is! But not for ignorant-in-coding people like me :slight_smile: … I’m that type of guy who follow YouTube video of How-to-do … step 1 step 2 step 3 xD

But anyway you gave a great answer man so I can find someone expert who can take this note as a guidance for solving it. <3