Player Added (Instance Created) help? [closed]
I have this script:
01 | local player = script.Parent.Parent |
03 | game.Players.PlayerAdded:connect( function (player) |
04 | local player = script.Parent.Parent |
05 | Instance.new( "SpotLight" , player) |
06 | player.Head.SpotLight.Name = ( "Flashlight" ) |
08 | player.Head.FlashLight.Angle = ( 120 ) |
09 | player.Head.FlashLight.Brightness = (. 85 ) |
and no matter what I try I cannot get a player added function to work. If you could give an example of PlayerAdded:connect it would be much appreciated :)
Locked by JesseSong, Void_Frost, and youtubemasterWOW
This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.
Why was this question closed?