My script that gives the player a point light works... but only about half of the time. I have no idea why this is happening and it is very frustrating please help. It is a normal script attached to a part on top of spawn.
script.Parent.Touched:Connect(function(Hit)
if Hit.Parent:FindFirstChild("Humanoid")then
local light = Instance.new('PointLight')
light.Parent = Hit.Parent.Head
light.Brightness = 1
end
end)

1 comment
Am I tripping?