red-blox / zap

A lightning fast networking solution for roblox.
https://zap.redblox.dev
MIT License
95 stars 16 forks source link

Fix fire in player added #45

Closed nezuo closed 10 months ago

nezuo commented 10 months ago

Firing a remote on the server inside PlayerAdded is not guaranteed to exist because the user's connection can run before zap's. This fixes the issue by initializing the player inside of fire functions instead of PlayerAdded.