How to reference PlayerGUI in a local script inside of a tool?

Is there a way to reference PlayerGUI in a local script inside of a tool? Can’t find anything on forum.

It is fairly simple. This can be used in any local script in your game:

local Players = game:GetService("Players")

local player = Players.LocalPlayer

local playerGui = player.PlayerGui

print(playerGui.Parent.Name) --// prints the name of the player

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