I'm trying to insert a Pointlight into each new player that joins the game. For some reason, it isn't working.
local light = Instance.new('PointLight')
function new(plr)
local Character = plr:WaitForChild('Character')
if plr~=nil then
light.Parent = Character:FindFirstChild('Torso')
light.Shadows = true
light.Range = 15
light.Color = Color3.new(255,255,255)
end
end
game.Players.PlayerAdded:connect(new)

1 comment
Thanks! I wasn't aware of the CharacterAdded event. :)