Rn I have this in startercharacterscripts
local chr = script.Parent
local plr = game.Players:GetPlayerFromCharacter(chr)
local Hum = chr:WaitForChild("Humanoid")
local Lobby = game.Teams.Lobby
Hum.Died:Connect(function()
plr.Team = Lobby
end)```
But I want to know if it would be more optimised if I put it in 1 script in ServerScriptService and how to do it rather then having 1 script for every player
