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

Is there any way to transfer a GUI from a model to LocalGui?

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.

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.