I would want to make a code that gives the player a PointLight every time they spawn. They will not receive any additional PointLights, just one. When I spawn, I get a PointLight, but when I respawn, I won't have any additional PointLights anymore. I also want to apply this to the other players. The script is normal and the parent of it is a spawn location. Here's the code:
local touched do
touched = workspace.SpawnLocation.Touched:Connect(function(hit)
local light = Instance.new('PointLight')
light.Parent = hit.Parent.Head
light.Brightness = 3
touched:Disconnect()
end)
end
How do I make it that every time you die, you still get the PointLight and the other players will still get the PointLight aswell?

1 comment
Oh and sorry, Im on my iPad so those speech marks is different.