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

Whenever a player respawns the script fires?

Asked by
jvyss 16
4 years ago

Is there a function for this purpose?

1 answer

Log in to vote
0
Answered by 4 years ago

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
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). PhantomVisual 992 — 4y
0
Thanks. jvyss 16 — 4y
Ad

Answer this question