I have this script:
local player = script.Parent.Parent game.Players.PlayerAdded:connect(function(player) local player = script.Parent.Parent Instance.new("SpotLight", player) player.Head.SpotLight.Name = ("Flashlight") wait() player.Head.FlashLight.Angle = (120) player.Head.FlashLight.Brightness = (.85) end)
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 :)
game.Players.PlayerAdded:connect(function(player) message=Instance.new("Message") message.Text=player.Name.." has entered the game!" message.Parent=game.Workspace wait(5) message:Destroy() end)
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?