I do not know how to make a java script
i was wondering if someone could teach me how to make a script for turning off lights and turning them on again with the “F” key
You’ll be wanting to check out the function Input.GetKeyDown(). If you’re confused as to how exactly to do that, check this question out for an example.
For the light itself, you’ll want to read up on its documentation here.