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

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

Asked by 6 years ago
Edited 6 years ago

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

Log in to vote
0
Answered by 6 years ago

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.

0
Thanks so much! I've been trying to find out how to do this for hours! jacktheawsome15 0 — 6y
0
Your Welcome. Might You Consider Accepting This Answer So we Both Get Repuatation? JamiethegreatQ777 16 — 6y
Ad

Answer this question