This is a quick question, it may be stupid but I'm going fast right now typing a Script so my head is weird, I want to run a function tied to the Players.PlayerRemoving event, can that be done Serverside?
Eg.
local Players = game:GetService("Players")
Players.PlayerRemoving:Connect(function(Player)
--// function
end)
?

2 comments
Thanks!
I don't know where the assumption of the event only firing for the client's Player object came from. The event behaves the exact same on both ends, the server and the client. It's totally fine to use it on both.