Closed 1ForeverHD closed 4 years ago
Is there an example of how they use it?
If they use function Zone:getPlayer(player)
I see no problem?
Zone:getPlayer(player)
is the correct way to use it on the client for cases where you only one to check if your local client is in a zone, however many developers are using zone.playerAdded/playerRemoving
on the client which checks for all players in a server. I may consider modifying these events and zone:initLoop()
to specifically support this.
jjj
Zone+'s original intention is to gather a collection of players, on the server. To do this, it performs a Region3 check, to gather an array of players within a 'rough' location, then it performs a raycast check to determine precisely where this rough-group of players are. There is one use-case on the client where Zone+ can be used: when a local player wishes to gather information of a collection of people within a zone. Recently however, lots of developers have been using Zone+ on the client to detect if the single local player is within a zone. This is inefficient and incorrect, as the Region3 check does not have to be performed at all (a simple downward raycast from the local clients humanoidrootpart is all that is needed).
Solution, either: