Ive tested alot of thing to try to get it but it all got an error everytime
COMMUNITY QUESTION
How do I get playergui using a Local script?
2 answers
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")
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
game.Players.LocalPlayer:WaitForChild("PlayerGui")