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
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
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
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
Would'nt this destroy the script when I am not the first person in the game.
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.
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
so would my script atthe beginning have script.Parent.Adornee = game.Workspace.FlyRobloxiagatea1 ?
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.