Universal Script 📌
2.2k Views
492 Executions

better flashlight not mine

Universal Script 📌
TWgamble
TWgambleFirst script
2 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

original by @hawk2

Updates

  1. Script edited: Update script

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


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

More universal scripts

See all
Script hub
2.9M
1.1M
Bumped 45 minutes ago
Key System

Script hub

#10 today

CanHub V2 200 GAMES KEYLESS

Script hub
5.5M
1.0M
Bumped 1 hour ago
Key System
Script hub
1.7M
2.2M
Bumped 2 hours ago
Key System

Script hub

#16 this week

Verified script badgeSnowy Hub 500+ Games & 25600+ Features

Script hub
14.6k
83.0k
Bumped 2 hours ago
Key System

Script hub

Kronos New

Script hub
3.2M
753.8k
Bumped 5 hours ago
Key System

Script hub

Hall of Fame #8

Verified script badgeFlow Hub | 50 Games | Updated

Universal Script 📌
465
1.2k
Bumped 7 hours ago
Key System
Universal Script 📌
7.2k
142.9k
Bumped 7 hours ago