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

Character Light Script Help?

Asked by 7 years ago

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?

0
If only it was that simple... DrPredablox 153 — 7y

2 answers

Log in to vote
0
Answered by 7 years ago
Edited 7 years ago

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)

0
I added some fixes to the script, It should work LennonLight 95 — 7y
0
Yup! It works! LennonLight 95 — 7y
0
I just tested it and everything works LennonLight 95 — 7y
0
Helpful, ty. DaWarTekWizard 169 — 7y
Ad
Log in to vote
0
Answered by 7 years ago

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

Answer this question