Hello! Im making a game that requires more than 1 map but the issue is the lighting. Each map has a different theme in which each map should have their own lighting.
How do some sim games make a lighting zone for each of their maps?
Hello! Im making a game that requires more than 1 map but the issue is the lighting. Each map has a different theme in which each map should have their own lighting.
How do some sim games make a lighting zone for each of their maps?
This could be accomplished by using Region3
or a .Touched
event from a part that leads into each map.
^ You could store a dictionary in a ModuleScript
containing different Lighting
presets for each map:
local Themes = {
["The Twilight Zone"] = {
Ambient = Color3.fromRGB(0, 0, 0),
Brightness = 0,
-- etc...
},
-- Add more themes from here!
}
When a .Touched
event or a Region3
is fired, you can find your specified map within the dictionary that is identical to the map the player has entered, then simply iterate through the index (in this case "The Twilight Zone"
) using a for
loop and set those presets accordingly to your Lighting
service.
Hope this helps.
You could accomplish that with this script:
Good luck