Closed Timmy-the-nobody closed 1 year ago
The Player class "Spawn" event is called twice clientside when a new player joins the server
Player
Put this in Client/Index.lua and Server/Index.lua so you can see the wrong behavior of the event on the client
Client/Index.lua
Server/Index.lua
Player.Subscribe("Spawn", function(ply) Console.Log(ply) end)
Event called only one time per connection clientside, like how it works serverside
The event is called twice clientside
Fixed it, thanks for creating the issue!
Prerequisites
Your Environment
Description
The
Player
class "Spawn" event is called twice clientside when a new player joins the serverSteps to reproduce the behavior
Put this in
Client/Index.lua
andServer/Index.lua
so you can see the wrong behavior of the event on the clientExpected behavior
Event called only one time per connection clientside, like how it works serverside
Actual behavior
The event is called twice clientside