script.Parent.MouseClick:Connect(function()
warn("Player Pressed Me")
script.GUI:Clone().Parent = game.Players.LocalPlayer.PlayerGui
end)
✓ ANSWER ACCEPTED
How to fix this clickdetector not working from cloning a gui into a localplayer?
1 answer
✓ Accepted answer
script.Parent.MouseClick:Connect(function()
warn("Player Pressed Me")
local clone = script.GUI:Clone()
clone.Parent = game.Players.LocalPlayer.PlayerGui
end)
You were trying to make the parent of the clone in the same function as cloning the GUI. That won't work.
1 comment
0
Sorry bit sleepy but thanks!
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Is the script in a ClickDetector?
Nevermind