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

Surface GUI Help?

Asked by 10 years ago

Hi,

I want to make my surface gui so that only I can see it. Currently everyone can see it but I want it like an admin gui but for the surface.

Thanks Kieran

2 answers

Log in to vote
0
Answered by 10 years ago

Okay so for a gui to only be visible for a single person it must be in the PlayerGui.

I'm not sure how you want this to work but inside the script you need it to set the adornee on the brick you want.

script.Parent.Adornee = game.Workspace.Brick

0
so would my script atthe beginning have script.Parent.Adornee = game.Workspace.FlyRobloxiagatea1 ? kieranm9090 49 — 10y
0
Okay so the adornee property allows you to put a 3d gui onto a part/brick. So somehow you need to find which brick you want. soaprocks2 75 — 10y
Ad
Log in to vote
-1
Answered by 10 years ago

Put this in the Gui; in a local script:

repeat wait() until game.Players.LocalPlayer
if game.Players.LocalPlayer.Name == "kieranm9090" then
    print("Is me")
else
    script.Parent:destroy()
end
0
Would'nt this destroy the script when I am not the first person in the game. kieranm9090 49 — 10y
0
No it wouldn't it would only destroy it for the player who has it and isn't you. A new one would immediately be cloned when you join. As long as this is in the StarterGui, code doesn't run in the starter gui. AstralKick 25 — 9y

Answer this question