Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to find Player Gui? Filtering enabled.

Asked by 6 years ago

I have made a freeze ray which freezes people when it touches them. I want to put a Freezed Icon in their Player screen. But the problem is that how do I find it? Like I cannot do plr.PlayerGui. It says PlayerGui not a valid member. So what do I do?

1 answer

Log in to vote
0
Answered by
Avigant 2374 Moderation Voter Community Moderator
6 years ago

Client-side LocalScript:

local LocalPlayer = game.Players.LocalPlayer
local PlayerGui = LocalPlayer:WaitForChild("PlayerGui")
Ad

Answer this question