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.
I would suggest using a server script. Inside Clicked function you could do:
workspace.FlashGUI:Clone(plyr.PlayerGui)
UPDATE:
I got it to work in a simple way using a LOCAL script. Heres the code:
local plyr = game.Players.LocalPlayer function onClick() script.Parent.FlashGUI:Clone().Parent = plyr.PlayerGui end script.Parent.ClickDetector.MouseClick:Connect(onClick)