This works in Studio, but not online in play mode, any help?
local gui = script.Parent.Training
script.Parent.Part.ClickDetector.MouseClick:connect(function(plr)
local newgui = gui:Clone()
newgui.Parent = plr.PlayerGui
end)
Edit: The solution was I had FilteringEnabled set to true and it's false now and works.

5 comments
No. This is clicking a part.
is it a local script?
No, does it have to be? I'll try it now.
With, or without a local script, it doesn't work.
There's a way to do it when you click a button you get it. I've done it.