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

Why isn't my coding for a GUI which only certain people can see working?

I can't figure out how to make it so only I can see the gui, and nobody else. I see no reason why my code doesn't work. Is it that I'm using a normal script instead of a local? I don't know the difference. Thanks!

wait(0.5)
if game.Players.LocalPlayer.Name == "Gridfinned" then
	script.Parent.Enabled = false
else
	script.Parent.Enabled = false
end

7 comments

0

use a local. also theyre both false so its never gonna be enabled?

0

Is this code in a GUI?

0

DinozCreates I used True for the first one before and only switched it to false to test it. I'll try using a local script though.

0

I tried using a local script and changed the first one to true but it still doesn't show up on my screen, and TypicallyPacific the Parent is the GUI.

0

Nevermind, once i used a local script it worked, i just accidentally wrote "True" instead of "true" Thanks! <3

0

mark as [Solved]

1 answer

It's fixed

1 comment

0

Change the title to "[Solved]Why isn't my coding for a GUI which only certain people can see working?"

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