for _, v in pairs(game.Workspace:GetDescendants()) do
if v:IsA("Part") and v.Name == "Window" then
local light = Instance.new("PointLight")
--Customise the light here
light.Parent = v
Dunno how helpful this will be. My code writings skills aren’t on point yet on this device. You’ll have to add checks for the time yourself, I haven’t really worked a lot with Lighting yet. Make sure to reply again if you have any issues!
I’m not trying to straight up ask for scripts, but the windows are groups and not individual parts,
wouldn’t this make things more complicated? Or does it just not matter? I’m not really a scripter, I really only know print.
It makes it more complicated yes, but its easier to use large scale. It means you won’t have to manually add lights to every part, and if you add more windows in the future it will automatically add the lights to them as well.
As for the grouping, GetDescendants() checks for everything, including children of children and so on. You just have to name the glass part of the window ‘Window’ (or change the V.Name line). Shouldn’t matter as long as they all have the same name.
There should’ve been a second end at the end of the script; I’ve edited my original answer to include it now. I have to go to sleep now, so if it still doesn’t work and nobody else has chimed in by then I can make sure the script works properly after school.
Try adding a script which will add a black-colored fog when it’s night to give night time a better effect. This worked for me when I was developing my game. You can also try to change the star count via the Sky asset for Lighting as well as the hitbox.
as said in one of my previous reply’s, I feel like fog would make the game annoying to play at night. (My game is a combat game) Although since two people have suggested it I might try the fog one. And, what do you mean by “Hitbox”? skyboxes don’t have hitboxes, as far as I’m sure.
Please, come join me in my game. I’m currently at work now, but I’ve been meticulously studying day and night lighting because of Roblox’s graphics. I’d be excited to explain everything I’ve encountered and learned over the past month.
I apologize for the edits, I’m very strict about how I communicate. Here’s the link.
I think I see the issue here … you have a very high contrast and saturation level, this is causing all light sources (point lights, sun, suface lights, etc.) to render darker than usual. For example, this issue is also occuring on this house in your game. Bright light source, yet still very dark.