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

LocalScript not a valid member of PlayerGui in FE?

Asked by
Scaii_0 145
6 years ago

Ok, I have a local script in StarterGui called 'HoldF'. And then in a tool in StarterPack, I have a script that is trying to access it.

local lscr = plr.PlayerGui:WaitForChild('HoldF', 2)

However, it just returns nil. I've tried using it infinitely, but it returns 'infinite yield possible' and I've tried normally, PlayerGui.HoldF but none of these seem to work.

When I went into the game and went to the developer console, I typed

game.Players.Scaii_0.PlayerGui.HoldF.Disabled = false

But even this said, HoldF is not a valid member of PlayerGui.

Does anyone know what the problem is?

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

You should change it to

game.Players["Scaii_0"].PlayerGui.HoldF.Disabled = false
0
This isn't what I need. I am looking for why HoldF can't be found under PlayerGui in the main script Scaii_0 145 — 6y
Ad

Answer this question