I want it so if someone clicks a brick, a gui from lighting will popup for the person who clicked the brick...
its simple, but tricky for me
I want it so if someone clicks a brick, a gui from lighting will popup for the person who clicked the brick...
its simple, but tricky for me
1st, insert a Click Detector
2nd, insert LocalScript
3rd, make sure they're both in the Brick
4th, Type
gui = game.StarterGui.Gui
frame = game.StarterGui.Gui.Frame
OnClicked(function()
if Frame.visible == false then
frame.Visible = true elseif
frame.visible == true then
frame.visible = false
script.Parent.OnClicked.connect:(function)
5th, go to Solo Mode by pressing F6 and click View on top, then select Output then observe your Results.
That's all... By the way, sorry if this doesn't work, cos I think I might have misplaced the OnClicked.
Anyway, I hope I helped.
This discussion is preserved as it was. New answers, comments, and votes are closed.
7 comments
by the way, you said Lighting, it doesn't need to be from Lighting, just set the Frame of the Gui 'visible' to False
It didnt work but it gave me an idea on how to fix it, thanks!
The event should be script.Parent.ClickDetector.MouseClick:connect(onClicked)
NP iiparty, sorry that I did it a lil wrong though, glad I helped though :D
such bad code, much sad
shut your mouth zMatrix! I'd like to see you script when you were a Noob (Not that you have stopped being a Noob)
You disregarded the request of using Lighting. And you called the function incorrectly.