Ive tested alot of thing to try to get it but it all got an error everytime
You would use this:
wait(0.5) local player = game.Players.LocalPlayer local gui = player.PlayerGui
you can also do this instead of wait (0.5) to not cause any errors
local player = game.Players.LocalPlayer local gui = player.PlayerGui:WaitForChild("your gui name here")