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

How to add a spotlight to player's torso?

Asked by 10 years ago

How would I do it if I want a SpotLight inside the player's torso and would not disappear after the player reset. Thanks in advance

1 answer

Log in to vote
1
Answered by
Pixxels 45
10 years ago

I don't know how to not make it disappear when they reset, but you could just have a script that gives the player a SpotLight when they spawn! If this is what you want you could do this:

Insert > LocalScript into the StarterGui

And type this:

repeat wait() until game.Players.LocalPlayer.Character local plr = game.Players.LocalPlayer local sl = Instance.new("SpotLight", plr.Character.Torso) sl.Angle = 90 -- The angle the light is towards sl.Brightness = 100 -- The brightness sl.Range = 16 -- The range of the light sl.Name = "MyLight" -- The name of the light (optional)

This script would simply insert a SpotLight into the player when they spawn!

0
You should've put your code inbetween the code tags (~~~~~~~~~~~~~~~~~). Also, they would get another SpotLight when they reset, anyways. Thewsomeguy 448 — 10y
Ad

Answer this question