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

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

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

✓ Accepted answer

here's how

game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function()
game.Lighting.Light:Clone().Parent = Player.Torso-
end)
end)

1 comment

0

without the -

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

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.

2 comments

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.

0

and there's me thinking that something can be solved without scripting advice, but cheddly does have better.

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