StarterPack code sees old character after respawn

With a LocalScript inside StarterPack:

local Char = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait()
print(Char.Parent)

This will work for the first spawn, but after respawning, nil will be printed, and Char will be the old, dead character. This LocalScript shouldn’t run until game.Players.LocalPlayer.Character has been changed after death.

2 Likes

Thanks for the report! We’ve filed a ticket to our internal database and we’ll follow up when we have an update for you.

1 Like