I want to create another area in the map for my game, but that area is always night so I need a separate skybox. I think it's easier to make the skybox change if I touch a block, but if there's a different method that works better please tell. Every tutorial I've found for this doesn't work for some reason, maybe because they're out of date? Any help is greatly appreciated.
COMMUNITY QUESTION
How to change skybox (locally) after touching a block?
1 answer
Assuming you already have a sky stored somewhere you can just do this:
local Sky = game.Workspace.Sky
-- This is just a script that changes the sky when a part is touched, you can use any function you like.
script.Parent.Touched:Connect(function()
local Clone = Sky:Clone()
Clone.Parent = game.Lighting
end)
Haven't tested this but it should work.
This discussion is preserved as it was. New answers, comments, and votes are closed.
