Sorry about the comment above. I looked into it, and I realized I made a mistake. The reason I think it's not working is because you can't access ReplicatedStorage from a LocalScript. Change that script into a regular Script, then follow these steps:
1. Insert an ObjectValue with the same parent as the Script. Rename it to Player
2. Insert a new LocalScript into the ObjectValue. Put the following code into it:
script.Parent.Value=game.Players.LocalPlayer
script:remove()
3. Use this in the regular Script:
local player = script.Parent.Player.Value
script.Parent.MouseButton1Click:connect(function()
local c = game.ReplicatedStorage.DJPanel:Clone()
c.Parent = player.PlayerGui
end)
Anyways, if you follow these steps correctly, it should work. If you have any further problems, please leave a comment below. Hope I helped :P
2 comments
I've run into the same problem before. Take the gui out of replicated storage. As far as I'm concerned, you can't access it in online mode. I would put it into ServerStorage and try it that way.
Still doesn't let me clone it.