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

How do I make a GUI pop up for a player after they have touched a brick?

I have a script inside of the brick I want the player to touch. Now I'm not sure how to edit the GUI for that one player and make it visible. Any help is appreciated :)

2 comments

0

First you need to be able to print(WhoTouchedTheBrick) then you can find their GUI and display it or make a new one.

0

ok thanks i will work on this

1 answer

:To expand on MooMooThalahlah's explanation, you would have to start by making the brick detect when the player has touched it, seen below:

script.Parent.Touched:connect(function(hit)
    print(hit.Parent.Name) -- Replace this with the code you wish to use
end)

Then you would add the code for making the gui visible inside of the function. Hope this helped!

1 comment

0

Yup as EnderGamer358 said.

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