How do I fix this cloning issue?
I've been trying to clone a Gui from ServerStorage to the PlayerGui using a LocalScript for the past hour or so. The script seems fine; there's no output errors, and it should be working. I've done this script a little while back, but I'm not sure if a ROBLOX error is causing this, or if something about my script is a tad off.
1 | local Player = game.Players.LocalPlayer |
2 | local ClickDetector = script.Parent.ClickDetector |
3 | local Gui = game.ServerStorage [ "Supplier Menu" ] |
5 | ClickDetector.MouseClick:connect( function () |
7 | a.Parent = Player.PlayerGui |
Cheers in advance for any help.