So I made a boss battle game.
But I so happen to realize, when you die you DO get teleported back.
But you can rejoin the server!
I need some help on finding out on how to make you unable to join the server after dying.
Help would be VERY Appreciated.
This is the code that teleports you to the game when you die.
game.Players.LocalPlayer.Character:WaitForChild('Humanoid').Died:Connect(function()
script.Parent.TextLabel.Visible = true
wait(5)
game:GetService('TeleportService'):Teleport(6118355358, game.Players.LocalPlayer)
end)
If you could make the player that died NOT able to join the server, that'd be good!

3 comments
code?
I put the code in the edit. It should help.
You could try bringing some data through TeleportService and perhaps prevent the player with that specific data join the game. You could also use DataStores if you want the player even after leaving the place to not be able to join that server but I didn't do much with DataStores sadly nor really much with TeleportService.