I hate gui's there not nice to me, but seriously how do I do it so when I click a brick a gui comes up only for the person who clicked it?
first, insert the gui into the playergui, and insert a frame into that gui. (Then put whatever you want in the frame).Set the visible property on the frame to false Next, put a clickdetector into the brick that u want to be clicked. Lastly, insert this script into the Clickdetector.
function Clicked(Plr) Plr.PlayerGui.Gui.Frame.Visible=true end script.Parent.MouseClick:connect(Clicked)
I've been trying to do this method by actually touching a brick. Except it keeps giving me this error message. 'PlayerGui is not a valid member of MeshPart.'
Here is my script if it helps.
function Touched(Plr)
Plr.PlayerGui.ScreenGui.Frame.Visible=true end script.Parent.Touched:connect(Touched)