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

How would I add Dynamic Lighting to a Character's torso?

Asked by
Soulzs 0
10 years ago

Help me I cant find the answer anywhere!

What I mean is that when you spawn in a dark place the spawn will act like a giver and put a Point light in the character's torso, Or a StarterPack script that is something like

OnFunction Spawn player find player torso insert point light Colour New Yeller enabled Brightness 1

I'm not the best scripter but I examine them's and this is similar to a script... I hope

From you're Robloxian friend Soulzs

3 answers

Log in to vote
0
Answered by 10 years ago

here's how

game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function()
game.Lighting.Light:Clone().Parent = Player.Torso-
end)
end)
0
without the - mikeinator3214 0 — 10y
Ad
Log in to vote
0
Answered by 10 years ago

Oh, all you need to do is create an instance of a PointLight or Spotlight on the character on spawn.

It's best that you make a Light Instance in Replicated Storage, and edit it through Properties to later be copied

I assume you have some kind of leaderboard, right? In the function PlayerRespawn,

game.ReplicatedStorage.Light:clone().Parent = player.Character.Torso
Log in to vote
-1
Answered by
JzRH 0
10 years ago

I dont think this is a direct answer but you could have a body armour morph or helmet morph like that in Army of the Galatic Republic (deliberate spelling mistake) and implement the point light though that, if you want it on spawn simply move it to spawn.

0
evidently this is actually fool proof, and would work every time depending on if you have the correct morphing touch buttons so on so forth. JzRH 0 — 10y
0
and there's me thinking that something can be solved without scripting advice, but cheddly does have better. JzRH 0 — 10y

Answer this question