Apparantly doing LocalPlayer.Character in the start of a LocalScript in backpack would return the old character. I solved this using
LocalPlayer.CharacterAdded:Wait()
but I would like to know if there is a better method of achieving this, because I feel like that may bug at times.
local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
Yes, but that gives me the dead character about to be destroyed. That’s why I used CharacterAdded.
Ryl0P
(Ryl0P)
4
tools parent / Backpack , Backpacks parent / Player , you can get like this
Sorry, I don’t understand what you mean, can you elaborate?
Thank you.
If the script is a descendant of backpack wouldn’t it load every time they spawn?
I don’t know, I’ve never seen something like it. It appears that LocalScripts in Backpack spawn before LocalPlayer.Character is cleared.
Thats weird, in that case I don’t think you’d run into an error using your or my way.
1 Like