Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How Do I Insert A Pointlight In Lua Form?

Asked by 10 years ago

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

1 answer

Log in to vote
0
Answered by 10 years ago

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)
0
Though, how would I put it in the character? DesignerDavid 0 — 10y
0
Edited. SquirreIOnToast 309 — 10y
0
Not necessarily. You could use a server script, and place a light using the 'PlayerAdded' and 'CharacterAdded' events. infalliblelemon 145 — 10y
Ad

Answer this question