Is it bad if I have multiple Player:Removing events in different scripts?

Idk just a general question I guess. Does it affect anything or do both fire at the same time just the same?

1 Like

It is fine, but its overall better to store it into one, this way you can guarantee the order the code is executed in example

  • Save Data
  • Delete Player From Tables
  • Clear Up Connections

It also keeps your code more organized so you know where to find your player removing event this would normally be in your main server script / main module script. This way if you find an error with the player removing it can only result in one place. (Your only player removing function)

1 Like

With player.removing connection signal it should alright as there is a queue behavior. These two post explained by roblox staff should explain further.

1 Like

Alright thanks for the replies you two. I think ill try 2 removing events makes it a bit easier for me.