This is the current script I have and it is not working, I have it in a local script in a button.
workspace.Button.ClickDetector.Clicked:connect(function(plyr)
if plyr == game.Players.LocalPlayer then
workspace.Button.FlashGUI:Clone()["Parent"] = game.Players.LocalPlayer.PlayerGui
end
end
Any help is always appreciated.

6 comments
You can't say ["Parent"], and can't use a LocalScript. Use a Server, .Parent, and get the PlayerGui like so: plyr.PlayerGui
I would suggest using a server script, just like Feahren pointed out, add it to player.PlayerGui.
So what I have is https://gyazo.com/a76a02c009685de31fcaa263f6d46838 and it still doesnt not work.
You can't use the LocalPlayer on Server because the Server doesn't have a LocalPlayer, quite logically. use game.Players[plyr] then
So im still trying and for some reason I can't get it to work. I've tried doing it several different ways, including the way you told me to do it and it still wont work.
You do not need to use ["Parent"] after the :Clone() function, as you can simply do :Clone().Parent