Search the Community
Showing results for tags 'flashligh'.
Found 1 result
Hello everyone, I was working on a premade LUA script of FPS and I found flashlight script, really nice However I can't make it work in my personal project. I used this part of the script which is completely correct: --Flashlight if window:KeyHit(Key.F) then self.sound.flashlight:Play() if self.flashlight:Hidden() then self.flashlight:Show() else self.flashlight:Hide() end end The flashlight works, the sound is correctly played, however when I hit again the F key the flashlight doesn't turn off but the light becomes brighter and brighter. Before After What am I missing ? Thank you again for your precious support !