Hello,
I am wondering if there is a better way around this, but this is the best way I have thought of so far. I am wondering if it is possible to detect a player entering a region3 defined by a dictionary.
The code below is what my module looks like, but it’s near impossible to loop through a dictionary.
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ServerScriptService = game:GetService("ServerScriptService")
local Audio = require(ServerScriptService.ServerModules.MusicModule.Audio)
local LightingSettings = {
Entrance = {
Main_Settings = {
Main_Ambient = Color3.new(0,0,0),
Main_Brightness = 0.2,
Main_ClockTime = 0,
},
Color_Correction_Settings = {
Color_Correction_Saturation = 0.05,
Color_Correction_TintColor = Color3.new(203, 216, 220)
},
Atmosphere_Settings = {
Atmosphere_Density = 0.4,
Atmosphere_Color = Color3.new(65, 153, 153),
Atmosphere_Decay = Color3.new(29, 29, 29)
},
Main_Settings_Region3 = {
Main_Region3 = Region3.new(), -- // REGION 3 LATER DEFINED, DETECT WHEN PLAYER ENTERS, C
MusicPlayed = nil --nil if none
},
UIColor = {
-- // blue?
}
},
ScrapsShop = {
Main_Settings = {
Main_Ambient = Color3.new(0,0,0),
Main_Brightness = 0.2,
Main_ClockTime = 0,
},
Color_Correction_Settings = {
Color_Correction_Saturation = 0.05,
Color_Correction_TintColor = Color3.new(203, 216, 220)
},
Atmosphere_Settings = {
Atmosphere_Density = 0.4,
Atmosphere_Color = Color3.new(65, 153, 153),
Atmosphere_Decay = Color3.new(29, 29, 29)
},
Main_Settings_Region3 = {
Main_Region3 = Region3.new(), -- // SAME THING HERE?????
MusicPlayed = Audio.Music.ScrapsShop --nil if none
},
UIColor = {
-- // blue?
}
},
}
return LightingSettings