Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to make a GUI Appear when brick touched? [FE] (Answered)

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?

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.

2 comments

0

Thanks so much! I've been trying to find out how to do this for hours!

0

Your Welcome. Might You Consider Accepting This Answer So we Both Get Repuatation?

This discussion is preserved as it was. New answers, comments, and votes are closed.