Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

My Skybox won't clone into the lighting tab?

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


2 comments

0

why did you unaccept my answer?

0

It didn't work

1 answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.