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

If part clicked; open gui?[SOLVED]

I am making a game, and in the game you click a part and a gui pops up from lighting; after 5 seconds it will disappear.

2 comments

0

Start with a ClickDetector.

0

I put that in.

1 answer

✓ Accepted answer
script.Parent.ClickDetector.MouseClick:connect(function(clickingplayer)
game.ServerStorage["NameOfGuiHere"]:Clone().Parent = clickingplayer.PlayerGui --It is recommended you use ServerStorage rather than Lighting for a storage device.
end)

1 comment

0

THANK YOU!

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