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