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

Character Light Script Help?

I want a spotlight around my character. I need it asap because of an event that I will need to start soon. Basically, I need to be able to paste it into console and a spotlight will appear on my character, which creates the spotlight effect like on a show. Please help?

1 comment

0

If only it was that simple...

2 answers

✓ Accepted answer

Simply place this script in ServerScriptService, change some of the light settings to your preference. and it'll automatically add a light to the player

game.Players.PlayerAdded:Connect(function(Player)
	Player.CharacterAdded:connect(function(char)
		local light = Instance.new("SpotLight")
		light.Parent = char.Torso -- Leave this be
    	light.Brightness = 30 -- Change this to your preference
		light.Enabled = true -- Leave this one be
		light.Face = "Top" -- leave this one be
		light.Range = 30 -- Choose the rage from 0 - 60
		light.Color = Color3.fromRGB(255, 255, 255) -- Change this to the color you want.
		light.Shadows = false -- Set this to false or true
		light.Angle = 180 -- Leave this one be
	end)
end)

4 comments

0

I added some fixes to the script, It should work

0

Yup! It works!

0

I just tested it and everything works

0

Helpful, ty.

Please:

  1. Try before asking
  2. Work on things you know how to do
  3. Explain your question

Anyway, if you want the effect in-game. Then in F9 GUI, you should do something like this:

local S = Instance.new('Sparkles')
S.Parent = game.Username.Character:WaitForChild('Torso')

or you can add Particle Emitter, that is up to you. I can't give you a clear answer as you didn't explain in detail. Though I have attempted to help you.

Comment if that is what you meant.

If this helped in some sort of way please Upvote and Accept answer

-- Your orange, BlackOrange3343

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