Need help with lighting

im trying to do something that has certain amount of ambient in one place, and a certain amount of ambient some where else

for example, I have two buildings, building A I want low ambient, and building B, I want a higher ambient.

How do I do that

1 Like

What exactly do you mean by low and high ambient? Do you mean the “brightness” of the area itself via the ambient lighting property?

yes, that is what i mean

30 characters

You can change the ambient for player if player enters a building but I don’t know about have different ambient for different areas.

1 Like

Yea, as @Mr_Gamerious said, you can’t have different ambient for different areas as per the Lighting settings.

You might want to follow his idea of changing the lighting for the player when they move areas, or you could just use light sources to create individual areas of ambient light.

Try this plugin Light Editor it’s great to see where light sources are especially when you have a lot of them.

1 Like

Maybe try to put a “when touched” script in a block when they enter a building. So when they touch the block, the lighting will tune into place.

Try to create a trigger (invisible block) with a onThouched script in side of it. Once this is touched it will activate a “for” sequence (I don’t know if thats the correct term) which will slowly fade the ambiance of the room. I don’t know too much about scripting though. Try to look for some help over in the scripting section.

2 Likes

Yeah, a for loop is the best way to do something like this

There are two ways we can end up doing this.

We can:
A. Set the lighting for outdoors to a relatively dim setting to allow for brighter interior with surface or Point lights without making it blinding. This method makes it easier to not need scripting.

B. We can use Region3 or magnitude to check the players location rather it be outside or inside of a building. In this case we would change the lighting properties from a local script to match your desired needs for the building without affecting the lighting for everyone else.

Necessary pages for magnitude and region3 below.

Magnitude: Vector3 | Documentation - Roblox Creator Hub

Region3: Region3 | Documentation - Roblox Creator Hub

1 Like

Try not to go over 4 with the lighting.