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

How Do I Insert A Pointlight In Lua Form?

Can you make a script where the game can insert a pointlight into your character? If so, how do I do it?

1 answer

Er, relatively easy.

Instance.new("PointLight", [INSERT PART DIRECTORY HERE])

I'm Aurum, and you're welcome.


You'd need to use a LocalScript to place it in a character. Place the following script in the 'StarterPack' section.

L = Instance.new("PointLight", script.Parent.Torso)

3 comments

0

Though, how would I put it in the character?

0

Edited.

0

Not necessarily. You could use a server script, and place a light using the 'PlayerAdded' and 'CharacterAdded' events.

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