Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Make A Server Unjoinable In Roblox?

Asked by 3 years ago
Edited 3 years ago

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!

0
code? mkhamster 58 — 3y
0
I put the code in the edit. It should help. EmmaMallen 13 — 3y
0
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. MrDarkLord1234 7 — 3y

Answer this question