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
5 years ago

Is there a function for this purpose?

1 answer

Log in to vote
0
Answered by 5 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 — 5y
0
Thanks. jvyss 16 — 5y
Ad

Answer this question