I am trying to make a click brick which will pop up a gui. I want a gui to transfer from a model to LocalGui. Is it possible? If you can help me with the code, it would be appreciated.
COMMUNITY QUESTION
Is there any way to transfer a GUI from a model to LocalGui?
1 answer
using clickdetectors(in server script)
script.Parent.ClickDetector.MouseClick:Connect(function(plr)
if not plr.PlayerGui:FindFirstChild("GUI") then
script.Parent.GUI:Clone().Parent = plr.PlayerGui
end
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.
