local light = Instance.new("PointLight")
light.Parent = game.Players.LocalPlayer:WaitForChild("Character").Torso
Can somebody tell me why this does not work and how to fix this? There is no error. It is a very simple localscript and I can't think of any way how this doesn't work.

3 comments
As kepiblop said, you can't use WaitForChild on a Player Instance to get the Character. You can get the player's character from the property Character in the player
More specifically, Character is a reference to an Instance, but it isn't an Instance itself.
To be a bit more specific, If you made a instance inside that player named "Character" and used waitforchild or findfirstchild, It will return that instance.