So I have been trying to make a shop for my game and I am trying to make it so that if you touch an invisible part then a GUI will appear where you can purchase items. I have tried to create this but it doesn't work. Does anyone know how to do it?
COMMUNITY QUESTION
How to make a GUI Appear when brick touched? [FE] (Answered)
1 answer
Make Sure You Have A Gui And Frame And Everything In The Position You Want First!
Then Do This Code:
function OnTouched (Part)
game.Workspace.ScreenGui.Parent = game.players.Localplayer.PlayerGui
--Change ScreenGui To
-- Whatever
-- The Gui Name Is
Hope This Helped.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Thanks so much! I've been trying to find out how to do this for hours!
Your Welcome. Might You Consider Accepting This Answer So we Both Get Repuatation?