Hello guys, So I am trying to do something like this
script.Parent.GetButtonRemoteEvent.OnServerEvent:Connect(function(plr, test)
local gui = game.Lighting.Folder.TestButton:Clone()
gui.Parent = plr.PlayerGui.TestFrames.Frame.ScrollingFrame
gui.Test.Value = true
end)
It says "TestFrames is not a valid member of PlayerGui" when it actually is. It is in PlayerGui but for some reason it can't find it.
Please, help

2 comments
Don't use lighting as storage. And use a remote event on the client, not the server.
Listen for the event OnClientEvent from the client , and fire from the server