Startercharacterscripts do not continue to insert after death
COMMUNITY QUESTION
How would I make a character spawn with a script each time they die or join?
1 answer
You could do something like this or use this:
game.Players.PlayerAdded:connect(function(Player)
Player.CharacterAdded:connect(function(Char)
script = game.ReplicatedStorage.TheScriptIWantToCloneToCharacter:Clone()
script.Parent = Char
end
end
4 comments
0
Wont this only fire on the initiial join?
0
The characteradded thing is an event. Events fire everytime the happen, given that the event still exists/is listening, of which it is here
0
why don't you just put the script in StarterPlayerScripts/StarterCharacterScripts
0
@vacuum_cleaner as Pejorem said, this event will fire function each time a character spawns. @abnotaddable Please read the question. That's the point he/she is having problem.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Destroy
Superapl1111's answer will work and is correct. However, I just did a test in play solo, server simulation, and in-game, and the
LocalScriptinsideStarterCharacterScriptsduplicated into theCharacterat both the start of the game and after each death.