Here's the script:
game.Players.PlayerAdded:connect(function(player) L = Instance.new("PointLight", Players.LocalPlayer.Torso) end) for _, player in pairs(game.Players:GetPlayers()) do PlayerAdded() --- Where I'm Stuck At. Halp D: end
I am basically trying to get the PointLight inside the player so they can be bright. I have checked everything I did:
The only part I am stuck on Line 6. Can anyone help me please?
I'm not sure if this is exactly what you want, but this will insert a light in every character's torso that spawns.
function Spawned(char) L = Instance.new("PointLight", char.Torso) end function PlayerAdded(player) player.CharacterAdded:connect(Spawned) end game.Players.PlayerAdded:connect(PlayerAdded)
Lol'd at, easy
game.Players:PlayerAdded:connect(function(plr) plr.CharacterAdded:connect(function(char) local point = Instance.new("PointLight", char.Torso) point.Range = 40 point.Brightness = 50 end) end)