Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to make the lighting darker so hard to see

I have tried so much but nothing I do works i'm not really new to scripting I've just never changed the lighting before... Need help please!!

1 comment

0

Add a colour correction effect and change the brightness to a negative

3 answers

Change the lighting settings:

  • change all colors to 0,0,0 (it's black)
  • change brightness to 0

Launch the game, and... Tadaam !

1 comment

0

Thanks for the help :)

Using a script to change properties is fairly easy.

To change a property of lighting you'll first want to get the Lighting service, then set one of it's Properties. This works almost exactly how setting a Brick's color works. The only exception is Lighting has different property names and some properties are Color3 values.

So, to change a value of lighting, you'd do this:

game.Lighting.Ambient = Color3.new(255/255, 0/255, 0/255)

What that does is set Lighting's Ambient property to a Color3 value. Some Color3's have their values between 0 and 1, some use numbers between 0 and 255. Ambient does 0 to 1, which is why I'm dividing by 255.

3 comments

0

I tried but I can't figure out how to change the Lightings Property

0

What I posted should work. What property are you trying to change?

0

Hold on now my game is randomly shutting down.. Why me?!

If it't not local lighting, you could go to roblox studio. Then hover over to view->properties and in the WorkSpace->Lighting-> and edit the ambient

This discussion is preserved as it was. New answers, comments, and votes are closed.