Universal Script 📌
11.8k Views
325 Executions

Flashlight script

Universal Script 📌
justanormaldude
justanormaldudeFirst script
4 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

F to turn on the flashlight

Updates

  1. Script edited: Create script

View Raw
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)


Comments

4
Log in to join the conversation. Login
UnsightedMan's profile picture
UnsightedMan4 years ago(edited)

good script :)

1
Leemovski's profile picture
Leemovski4 years ago(edited)

no one spoke to you, Mr. Obvious

1
AayushLmao's profile picture
AayushLmao4 years ago(edited)

just use infinite yield light comment lmao

1
Leemovski's profile picture
Leemovski4 years ago(edited)

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

1

More universal scripts

See all
Script hub
116.3k
175.7k
Bumped 2 hours ago
Key System
Script hub
14.6k
70.4k
Bumped 3 hours ago
Universal Script 📌
35.5k
1.1M
Bumped 3 hours ago
Universal Script 📌
20.3k
204.4k
Bumped 3 hours ago
Script hub
9.7k
71.1k
Bumped 6 hours ago
Key System