Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

[ SOLVED ] How can I make the character rejoin when the character dies?

I mean if someone dies, the game kick him/her.

5 comments

0

So when all the pieces all apart, you want them put back together..?

0

Huh? This is not clear at all...

0

I mean if someone dies, the game kick him/her.

0

I would use events when someone dies, the event plays a kick script.

0

please fucking accept EH's answer if he helped...thats what the features there for

2 answers

✓ Accepted answer
local plr = game.Players.LocalPlayer
local char = plr.Character or CharacterAdded:Wait()

char:WaitForChild("Humanoid").Died:Connect(function()
	plr:Kick("Died")
end)
local Delay = 2
local Reason = ""

game:GetService("Players").PlayerAdded:Connect(function(Player)
    Player.CharacterAdded:Connect(function(Character)
        Character:WaitForChild("Humanoid").Died:Connect(function()
            wait(Delay)
            Player:Kick(Reason)
        end)
    end)
end)

With a delay.

3 comments

0

Thanks.

0

im so sorry you have to deal with such pain EH

0

Took some digging to see what he meant. I just guessed

This discussion is preserved as it was. New answers, comments, and votes are closed.