With what script does to create a skybox for the planet, I made a space game I wanted to make it realistic by putting this, example: When entering the planet to change background skybox.
From what I understand in your post, you could do the following;
local Skyboxes = { Earth = { SkyboxBk = -- Id here -- Insert other Earth skybox IDs } }
local Input = script.Parent.Text -- This is an example for getting the planet if Skyboxes[Input] then end
game.Lighting.Skybox.SkyboxBk = Skyboxes[Input]["SkyboxBk"]
And do Step 3 for every Skybox slot.
Hope this gives you a pointer in the right direction.
zboi_082007 did I do it right or wrong the script?
I did it that way
local Skyboxes = { Eve = { SkyboxBk = "rbxassetid://1012890", -- Id here SkyboxDn = "rbxassetid://1012891", SkyboxFt = "rbxassetid://1012887", SkyboxLf = "rbxassetid://1012889", SkyboxRt = "rbxassetid://1012888", SkyboxUp = "rbxassetid://1014449", -- Insert other Earth skybox IDs } } local Input = script.Parent.Parent.Eve -- This is an example for getting the planet if Skyboxes[Input] then end game.Lighting.Skybox.SkyboxBk = Skyboxes[Input]["SkyboxBk"] game.Lighting.Skybox.SkyboxDn = Skyboxes[Input]["SkyboxDn"] game.Lighting.Skybox.SkyboxFt = Skyboxes[Input]["SkyboxFt"] game.Lighting.Skybox.SkyboxLf = Skyboxes[Input]["SkyboxLf"] game.Lighting.Skybox.SkyboxRt = Skyboxes[Input]["SkyboxRt"] game.Lighting.Skybox.SkyboxUp = Skyboxes[Input]["SkyboxUp"]