How would I add a respawn function once the player is teamed?

function onPlayerEntered(plyr)

if plyr:IsInGroup(4818698) then

plyr.TeamColor = BrickColor.new("Medium stone grey")

end

end

  

game.Players.PlayerAdded:connect(onPlayerEntered)

1 comment

0

Solved it.