I already clone the gui but I want to use it in other script how do I get the gui from the player?

I mean like CloneGui is already in other script but I want to make onother script that’s the same variable but if I clone the gui again player head will be 2 guis can I get another way to get the gui that I use in other script e.g. game.workspace.part then I want to use it in other script too

game.Players.LocalPlayer.PlayerGui:FindFirstChild(guiObject)

like this??

local rankTag = game.players.localplayer.playergui:FindFirstChild("OverHeadGUI")

rankTag.Frame.Logo.Visible = true

don’t forget to capitalize most of the objects you refer to also yes

1 Like