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

How to add a spotlight to player's torso?

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

✓ Accepted answer

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!

1 comment

0

You should've put your code inbetween the code tags (~~~~~~~~~~~~~~~~~). Also, they would get another SpotLight when they reset, anyways.

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