I'm trying to take a GUI in lighting to put it in a GUI in the game GUI, but right now, it dosen't seem to work. I don't know what is wrong, and I ask for some of your assistance.
script.Parent.MouseButton1Click:connect(function()
local swordSlot = game.Lighting:findFirstChild("linkedSwordSlot")
swordSlot.Parent = game.StarterGui.Inventory.Frame:findFirstChild("row1")
print("Made the parent row1!")
game.StarterGui.Inventory.Frame:findFirstChild("row1").slot1.Parent = game.Lighting
print("Success!")
end)

2 comments
Objects accessed by only the server belong in ServerStorage and not Lighting. Objects accessed by both the server and the client belong in ReplicatedStorage.
Thanks! ^