-- Put in StarterPlayer>StarterCharacterScripts
-- Edit only if you know what are you doing



local mouse = game.Players.LocalPlayer:GetMouse()

function Light()
   local player = game.Players.LocalPlayer
   local playerChar = player.Character
   local playerLight = playerChar.Head:FindFirstChild("Light")

    if playerLight then
        playerLight:Destroy()
    else
      local  light = Instance.new("SurfaceLight",playerChar:FindFirstChild("Head"))
        light.Name = "Light" -- Edit your light
        light.Range = 30
		light.Angle = 50
		light.Shadows = true
		light.Brightness = 1
    end
end

mouse.KeyDown:connect(function(key)
	
key = key:lower()
if key == "e" then -- Change with your key
	script.Sound:Play()
    Light()

end
end)
