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

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

Asked by 5 years ago

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
0
use a local. also theyre both false so its never gonna be enabled? DinozCreates 1070 — 5y
0
Is this code in a GUI? TypicallyPacific 61 — 5y
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. Gridfinned 5 — 5y
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. Gridfinned 5 — 5y
View all comments (3 more)
0
Nevermind, once i used a local script it worked, i just accidentally wrote "True" instead of "true" Thanks! <3 Gridfinned 5 — 5y
0
mark as [Solved] DinozCreates 1070 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

It's fixed

0
Change the title to "[Solved]Why isn't my coding for a GUI which only certain people can see working?" StrategicPlayZ 58 — 5y
Ad

Answer this question