Skybox rbxasset changing but skybox isn't changing

Hello, I’ve been currently looking for an answer to this problem, but have been unable to find one.

I simply want to change the Skybox with a GUIButton. I am using a script.

Heres the code below:

local button = script.Parent
local boolean = true
local goToSkyBox = game.Lighting.Sky

button.MouseButton1Click:Connect(function()
	if (boolean) then
		print("Check")
		boolean = false
		goToSkyBox.SkyboxBk = "rbxassetid://10799413050"
		goToSkyBox.SkyboxDn = "rbxassetid://10799413050"
		goToSkyBox.SkyboxFt = "rbxassetid://10799413050"
		goToSkyBox.SkyboxLf = "rbxassetid://10799413050"
		goToSkyBox.SkyboxRt = "rbxassetid://10799413050"
		goToSkyBox.SkyboxUp = "rbxassetid://10799413050"
		--http://www.roblox.com/asset/?id=10799413050
	else
		boolean = true
		goToSkyBox.SkyboxBk = "rbxasset://textures/sky/sky512_bk.tex"
		goToSkyBox.SkyboxDn = "rbxasset://textures/sky/sky512_dn.tex"
		goToSkyBox.SkyboxFt = "rbxasset://textures/sky/sky512_ft.tex"
		goToSkyBox.SkyboxLf = "rbxasset://textures/sky/sky512_lf.tex"
		goToSkyBox.SkyboxRt = "rbxasset://textures/sky/sky512_rt.tex"
		goToSkyBox.SkyboxUp = "rbxasset://textures/sky/sky512_up.tex"
	end
end)

Anyone have a clue to why its not changing to rbxassetid://10799413050? It’s changing the values in the Skybox but the skybox image isn’t actually changing

It might take a while, so try waiting for a few secs

Nope, the sky box still has not changed

Try after setting the IDs to Parent the Skybox in a container other than Lighting and then back into Lighting.

So apparently this does work. I did some online search and I assume but not entirely sure, but is Image ID different from Asset ID