So my script won't clone this skybox into the lighting when I need it to, can someone help me?
while wait(0) do if script.Parent == workspace then local galaxy = script.Parent:WaitForChild("Purple Nebula"):Clone() galaxy.Parent = game.Lighting wait(10) galaxy:Destroy() end end
Try this
while true do wait(1) -- change 1 to what ever you want if script.Parent == workspace then local galaxy = script.Parent:WaitForChild("Purple Nebula") galaxy:Clone().Parent = game.Lighting -- this puts it in lighting wait(10) game.Workspace:WaitForChild("Purple Nebula"):Destroy() -- this should destroy it end end