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

How Do i make Dynamic Lighting Around My Character?

Asked by
Rukory 0
10 years ago

I Was Searching on the roblox forums and i couldn't find anything so i decided to ask you guys here. Also if you were to kindly help me please also note where to put the script in

2 answers

Log in to vote
0
Answered by
Freemium 110
10 years ago

You'll be using -PlayerAdded -CharacterAdded -Instance.new -Variables

game.Players.PlayerAdded:connect(function(plr)
    plr.CharacterAdded:connect(function(char)
        local a = Instance.new("PointLight", char.Head)
        a.Range = x --Replace x with how far you want the glow to be
        a.Brightness = x --Replace x with how bright you want it to be
        a.Color = Color3.new(x, x, x) --Set the color you want it to be (RGB value divided by 255)
        a.Shadows = true --Do you want the light to be seen through bricks?
    end)
end)
0
do i put this is workspace or players Rukory 0 — 10y
0
Workspace. Freemium 110 — 10y
Ad
Log in to vote
-1
Answered by 10 years ago

Insert a service called "PointLight" into the characters torso.

0
where would i find characters torso srry im new to scripting Rukory 0 — 10y
0
It depends what you want. Do you want every player that enters to have a light? Orlando777 315 — 10y
0
yeah cause im making a horror game with dynamic lighting and its gonna be dark but i need a light aura around them Rukory 0 — 10y
0
Put this into a normal script in the players "StarterPack" Orlando777 315 — 10y
0
local light = Instance.new("PointLight") light.Parent = script.Parent.Parent.Character.Torso Orlando777 315 — 10y

Answer this question