Flashlight script
Key RequiredUniversal

Flashlight script

Universal Scriptjustanormaldudejustanormaldude 11.7K views 204 executesUpdated Jul 9, 2022
5.0/ 5(1 votes)
10100% Positive
Lua Script•27 lines (829 chars)
local mouse = game.Players.LocalPlayer:GetMouse()
function Light()
    player = game.Players.LocalPlayer
    playerChar = player.Character
    playerLight = playerChar.Torso:FindFirstChild("Light")
    if playerLight then
        playerLight:Destroy()
    else
        light = Instance.new("SurfaceLight",playerChar:FindFirstChild("Torso"))
        light.Name = "Light"
        light.Range = 11 -- Change to distance ofthe Light.
        light.Brightness = 11 -- Change to how much.
        light.Shadows = false -- Change it to True/False.

        
        local play = Instance.new("Sound",playerChar:FindFirstChild("Head"))
        play.SoundId = "http://www.roblox.com/asset/?id=198914875"
        play:Play()
        
    end
end
mouse.KeyDown:connect(function(key)
key = key:lower()
if key == "f" then
    Light()
end
end)

Features & Information

F to turn on the flashlight

Community Comments (4)

LeemovskiLeemovskiJul 9, 2022(edited)

this could be useful for maps with low illumination thanks for the script

AayushLmaoAayushLmaoJul 9, 2022(edited)

just use infinite yield light comment lmao

LeemovskiLeemovskiJul 11, 2022(edited)

no one spoke to you, Mr. Obvious

UnsightedManUnsightedManOct 16, 2022(edited)

good script :)

More Scripts for Universal Scripts