Hi all I am making a horror hame and I want the light of my flashlight to turn off when you run out of battery. I have gotten the battery part to work but what I’m struggling with now is making it so the light turns out. The flashlight is a tool the player is forced to hold. Thank you devs!
Error: Flashlight is not a valid member of Player “Players.anygamesalldaylong”
Script: while true do
wait(0.1)
game.Players.LocalPlayer.Flashlight.Part.Light.Brightness = 0
script.Parent.Enabled = false
end