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

If part clicked; open gui?[SOLVED]

Asked by 10 years ago

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.

0
Start with a ClickDetector. GoldenPhysics 474 — 10y
0
I put that in. FancyClone 0 — 10y

1 answer

Log in to vote
0
Answered by
M39a9am3R 3210 Moderation Voter Community Moderator
10 years ago
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)
0
THANK YOU! FancyClone 0 — 10y
Ad

Answer this question