Kahibaro
Discord Login Register

1.3.5 Basic lighting

Why Lighting Matters in Roblox

Lighting is one of the fastest ways to change how your game feels. By adjusting light, you can make a place look bright and cheerful, dark and scary, or futuristic and mysterious. In Roblox Studio, you control lighting mostly through a special service called Lighting and through light objects placed in the world.

In this chapter you learn what basic lighting is, where to find the main settings, and how to use simple lights to give your game a clear visual mood, without going into advanced rendering features that belong in more complex topics.

Finding the Lighting Service

When you open Roblox Studio, the Lighting service appears in the Explorer window along with Workspace, Players, and other core services. You do not place Lighting yourself, it is always there, and it controls how the whole game looks.

Select Lighting in the Explorer, then look at the Properties window. You will see settings that affect the entire game world, such as brightness, time of day, and ambient colors. Changing these values changes how every object in the scene is lit.

Lighting settings are global. If you change them, all players in the game see the change, because the whole world uses the same lighting.

Time of Day and Environment Color

One of the simplest lighting controls is the time of day. Roblox can simulate sunlight changing across the day. In the Lighting properties you will see a property called TimeOfDay. It is a text value that looks like a time, such as 12:00:00 or 18:30:00.

If you change TimeOfDay to 06:00:00, the sun looks like early morning. If you set it to 23:00:00, the world becomes like night. Even without adding any other lights, this can dramatically change the feeling of your map.

Near TimeOfDay you find other properties that affect the overall color of the environment. For example, Ambient controls the soft color that fills darker areas, and OutdoorAmbient affects the shadows outside. If you make Ambient slightly blue, shadows and unlit corners will look cooler and more mysterious. If you choose a warm orange color, the scene will feel cozy and friendly.

For a basic, readable scene, avoid making both Ambient and OutdoorAmbient very dark or very saturated. Extremely dark or heavily colored ambient light can make it hard for players to see where they are going.

When you are just starting, keep your ambient colors near gray and adjust them only slightly. This gives your game a clean base look, and you can change colors more dramatically later when you are comfortable with the controls.

Basic Brightness and Shadow Feel

Another important global setting in Lighting is Brightness. In simple terms, brightness controls how strong the main light appears. If you raise Brightness, lit areas become more intense and shadows can become more noticeable. If you lower it, the whole scene becomes more muted.

There is no single correct value for brightness. It depends on your game style. For a bright, cartoony obby, a higher brightness can make colors pop. For a horror game, a lower brightness with focused light sources creates more contrast and tension.

The combination of Brightness, TimeOfDay, and ambient colors sets the base tone. Once you have a base, you can add specific light objects to highlight important spots.

PointLight, SpotLight, and SurfaceLight

In Roblox, you can create physical light sources that exist as objects in the world. The three main basic light types are PointLight, SpotLight, and SurfaceLight. These are not parts by themselves. Instead, you parent them to parts or attachments so they shine from a specific place.

A PointLight shines in all directions from a single point. Imagine a light bulb. Wherever you place the PointLight, it glows outward equally in every direction. You might put a PointLight inside a lamp model or at the center of a glowing crystal.

A SpotLight shines in a cone, like a flashlight or a stage spotlight. A SpotLight has a direction that usually follows the orientation of the object it is attached to. If you want a light that only illuminates what is in front of it, a SpotLight is a good choice.

A SurfaceLight shines from one face of a part. Think of a square panel that lights an area in front of it. You can choose which face of the part to emit light, such as Top, Bottom, Front, or Back. Surface lights are useful for wall lamps, ceiling panels, or screens that cast light on the floor.

Each light object usually has properties like Range, Brightness, and Color. Range controls how far the light reaches. Brightness controls how strong it is. Color sets the color of the light. A small, bright blue PointLight can make an energy orb look powerful, while a wide, soft yellow SurfaceLight can make a room feel calm.

When you add lights, be careful with very large Range and very high Brightness values on many lights. Too many strong lights can hurt performance and can also make your scene look blown out and unclear.

Placing and Adjusting Simple Lights

To add a basic light, first create or select a part where the light should come from. For example, place a cylinder as a lamp post. In the Explorer, right click that part, choose Insert Object, and then select PointLight. The light instantly appears in the scene and you can see its effect.

With the PointLight selected, use the Properties window to adjust it. Change the Color to match the style of your lamp, maybe a soft warm yellow. Adjust the Range so that it lights only what you want, for example the ground near the lamp but not the entire map. Then change Brightness until the light is visible without being overwhelming.

For a SpotLight, parent it to a part that has a clear direction, like a tilted cylinder or a part you rotate to aim the light. In the SpotLight properties you will see an angle related setting, such as Angle, that controls how wide the light cone is. A smaller angle creates a narrow beam, a larger angle creates a wide beam.

SurfaceLight needs a part so it knows which surface to emit from. Parent the SurfaceLight to the part, then in the properties select the Face property. Choose the face you want, such as Top for a ceiling light that shines downward. Test in Play mode to see how the player experiences the light while moving.

Start simple. Light important paths, main rooms, and special objects first. Once players can clearly see where to go, you can experiment with accent lights to add atmosphere.

Basic Day and Night Effects

Even with basic tools you can suggest a day and night cycle. You do not need advanced scripts at this stage, but you can manually choose a time that fits your game idea.

For a simple outdoor obby, choose a daytime TimeOfDay like 13:00:00 and slightly higher Brightness. This makes colors bright and friendly. If you are building a spooky map, choose a night time like 21:00:00, set Brightness lower, and add focused lights such as PointLight torches or lamps to guide the player.

A simple formula that helps decide if you need extra lights is:

$$
\text{If scene is dark at night} \Rightarrow \text{Add local lights near paths and goals}
$$

Do not rely only on moonlight from TimeOfDay. Players should always be able to see platforms, obstacles, and important pickups without straining their eyes.

Using Lighting to Guide the Player

Lighting is not only for mood. It helps with level readability. A brightly lit door draws attention. A glowing platform tells players it is important. You can use a slightly brighter or differently colored light to mark checkpoints or safe zones.

If you have a long corridor, you can place a small PointLight near the end to pull the player forward. If there are two paths and one is the main route, light that path more clearly than the optional route. This is a simple way to give players hints without text or arrows.

Try to keep a clear contrast between safe and dangerous areas. Dangerous zones can be darker or lit with warning colors like red, while safe zones can be brighter and more neutral. This visual language helps players learn your game faster.

Testing Lighting In Game View

Lighting can look different in the editor and in Play mode. Always test your lighting from the player perspective. Click Play, walk around the map, and pay attention to how well you can see important shapes and distances.

Check corners and interiors that might be darker than expected. Look at the sky and see if it distracts from the level or supports the mood. If something is too bright or too dark, stop the Play session, select the relevant light or the Lighting service, and adjust the values slightly. Then test again.

Never rely only on how your game looks from far above in the editor. Always test at ground level in Play mode. Good lighting should support the player while moving through the world, not just look good in a still view.

With these basic lighting tools, you can already give your Roblox game a strong visual identity and make it more playable. Later, you can explore more advanced features, but a clear, simple lighting setup is the foundation of any good looking experience.

Views: 26

Comments

Please login to add a comment.

Don't have an account? Register now!