Some GUI Localscripts not working when cloned into PlayerGUI?

I got 2 screengui’s, both contain localscripts:
image
Both are cloned into the PlayerGUI via a server script:

Players.PlayerAdded:Connect(function(player)
	script.Menu:Clone().Parent = player.PlayerGui
	script.introUI:Clone().Parent = player.PlayerGui
end)

I want the localscripts in both screengui’s to execute and function when cloned into the PlayerGUI, but only the localscript inside “intro” seems to work, but not menu.

I’ve checked all properties of the UI’s and localscripts, they’re totally identical, yet one just doesnt work?

All works fine when parented to startergui, so there is no script errors, but my game doesn’t have CharacterAutoLoad enabled, hence why the GUI’s need to be manually parented to PlayerGUI via a script.

Ok I’m a total fool, localscripts waiting forever for a non-existent character to pop in.

local character = localplayer.Character or localplayer.CharacterAdded:Wait()

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.