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

How do you make your character fade black, then disappear before respawn?

Asked by 10 years ago

So I've been wondering this, for quite some time, and I'm asking could someone please answer my question in script please? How do you make your character fade black, then disappear before you respawn?

2 answers

Log in to vote
0
Answered by
Vathriel 510 Moderation Voter
10 years ago

FIrst you remove their shirts and pants, then set all their body parts colors to black, and then decrease transparency to the approximate time before they respawn. You'll need the Humanoid.Died event for this.

0
Hmmmm Is there an example? Wrongmistake 0 — 10y
Ad
Log in to vote
0
Answered by 10 years ago

This is some code I just worked out, may need modification if you use this script.

game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
character:WaitForChild("Humanoid").Died:connect(function()
-- Put the stuff like remove shirts, ect here
print (player.Name .. " has died...")
end)
end)
end)

This will at least give you a start. What this does is anything between the function() and end in the middle gets called when they die. This script sets the died event up when the player enters the game.

Answer this question