Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

LocalScript not a valid member of PlayerGui in FE?

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

You should change it to

game.Players["Scaii_0"].PlayerGui.HoldF.Disabled = false

1 comment

0

This isn't what I need. I am looking for why HoldF can't be found under PlayerGui in the main script

This discussion is preserved as it was. New answers, comments, and votes are closed.