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

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

Asked by 6 years ago

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 :)

0
First you need to be able to print(WhoTouchedTheBrick) then you can find their GUI and display it or make a new one. MooMooThalahlah 421 — 6y
0
ok thanks i will work on this 4d61736f6e 59 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

: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!

0
Yup as EnderGamer358 said. Lualaxy 78 — 6y
Ad

Answer this question