I'm trying to make a script to bring a skybox from serverstorage to lighting and the previous skybox to serverstorage, but it's not working.
while true do
local skybox1 = game.lighting:FindFirstChild("Purple Nebula")
local skybox2 = game.serverStore:FindFirstChild("Dark Skies")
local serverStore = game:GetService("ServerStorage")
Lighting = game.Lighting
wait(5)
skybox1.Parent = serverStore
skybox2.Parent = Lighting
wait(1)
skybox2.Parent = serverStore
skybox1.Parent = Lighting
end
???

1 comment
serverStore and Lighting need to go before skybox 1 and 2