How do I set a variable of type player to a player from an array of all of the players created like this:
var AllPlayers:player = GetPlayspace().GetPlayers()
I really don’t understand the whole accessing with a failure thing.
How do I set a variable of type player to a player from an array of all of the players created like this:
var AllPlayers:player = GetPlayspace().GetPlayers()
I really don’t understand the whole accessing with a failure thing.
I dont get the question you want to add a player to the array?
if so that would be set AllPlayers = AllPlayers + array{PlayerHere}
It’s not really a map where you set a value of a player which does need failure prevention
You need to iterate through this array, and probably read some more of that documentation