In my game there’s a script that clones a billboardgui which is parented to your head when you spawn. It was working a few days ago and now it is not. Idk what has changed since then and now but here we are.
I’ve looked through find/replace all and the only mention of my gui is in this script. I also have another script that removes accessories but I don’t think that’s contributing to the problem here. I have added print statements to see if maybe the code just ended prematurely but to no avail.
Try using :WaitForChild(‘Head’) instead of indexing with a period. Also player.CharacterAdded passes the newly created character to the function, so you could try using this instead of indexing through player.Character
Tried this, still not working.
Nothing else named head in my character.
I fear this may be a bug but I’m going to run some tests I guess. It could also be something else in my codebase interfering but I highly doubt, I’m going to find anything with the Destroy method or .Parent = nil and check though.
Not sure, I know you can hook into instance.Destroying but that wouldn’t print the stack trace. You could print :GetFullName and that would tell you where it’s moved to but again that only does so much. You could do a binary search with all of the scripts in your game maybe as a last resort if those 2 things don’t give you any leads?
And another thing, maybe this bug happens because the billboard appears before the player loads. If so, it would be right for the player to load first and then the billboard to appear.
Try it: