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

How to make a light?

Is there a code to make some parts glow like lanterns?

1 comment

0

just insert a pointlight

1 answer

✓ Accepted answer

You can use code to achieve this, but the most common (and regular) way of doing this is to just insert a PointLight into the brick you wish to act as a light. The PointLight can be found under Insert>Objects..>PointLight

If you have the command-bar open, you can select the part and run this line

Instance.new("PointLight", game.Selection:Get()[1]))

It takes use of the Selection-service natively in ROBLOX to get your first selected object.

2 comments

0

I didn't know about the game.Selection:Get(). That's cool.

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