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

Whenever a player respawns the script fires?

Is there a function for this purpose?

1 answer

✓ Accepted answer

Be aware that I am not a professional scripter.

It's simple, really. You can use the CharacterAdded function.

local function onCharacterAdded(character)
	print(character.Name .. " has spawned") --Insert own code
end

2 comments

0

You need to connect that function to an event: Player.CharacterAdded:Connect(onCharacterAdded). Or you could make the function on the spot: Player.CharacterAdded:Connect(function(character) end).

0

Thanks.

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