better flashlight not mine
Key RequiredUniversal

better flashlight not mine

Universal ScriptTWgambleTWgamble 2.2K views 276 executesUpdated May 5, 2025
Unrated
00
Lua Script•40 lines (1031 chars)
--[[
	WARNING: Heads up! This script has not been verified by ScriptBlox. Use at your own risk!
]]

local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local player = Players.LocalPlayer
local camera = workspace.CurrentCamera

local flashlight = Instance.new("Part")
flashlight.Name = "Flashlight"
flashlight.Anchored = true
flashlight.CanCollide = false
flashlight.Size = Vector3.new(0.15, 0.15, 0.15)
flashlight.Transparency = 1
flashlight.Parent = workspace

local light = Instance.new("SpotLight")
light.Parent = flashlight
light.Brightness = 2
light.Range = 230
light.Angle = 63
light.Enabled = true

-- Toggle with F
local flashlightOn = true
player:GetMouse().KeyDown:Connect(function(key)
	if key:lower() == "f" then
		flashlightOn = not flashlightOn
		light.Enabled = flashlightOn
	end
end)


RunService.RenderStepped:Connect(function()
	if flashlightOn then
		local camCF = camera.CFrame
		flashlight.CFrame = CFrame.new(camCF.Position, camCF.Position + camCF.LookVector)
	end
end)

Features & Information

original by @hawk2

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts