
979 Views
11.7k Executions
Flashlight Tool For Universal
10K executions
Universal Script 📌
2 months ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
The light follows your mouse around the level to illuminate what lays hidden.
Updates
Script edited: Fixed Error (Editable Code)
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local Workspace = game:GetService("Workspace")
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local Mouse = LocalPlayer:GetMouse()
local gearId = 116040770
-- ==================== [环境自动侦测与补丁系统] ====================
local envState = {
Mode = "Mouse", -- "Mouse" | "Touch" | "Gamepad"
IsMobile = false
}
-- 1. 实时监听输入设备无缝切换(触屏 <-> 鼠标 <-> 手柄)
UserInputService.LastInputTypeChanged:Connect(function(lastInputType)
if lastInputType == Enum.UserInputType.Touch then
envState.Mode = "Touch"
elseif lastInputType == Enum.UserInputType.Gamepad1 or string.find(lastInputType.Name, "Gamepad") then
envState.Mode = "Gamepad"
elseif string.find(lastInputType.Name, "Mouse") then
envState.Mode = "Mouse"
end
end)
-- 2. 动态环境修复补丁(移动端与 PC 统一保持阴影开启与原版亮度 4)
local function applyEnvironmentPatch(light)
envState.IsMobile = UserInputService.TouchEnabled and not UserInputService.MouseEnabled
envState.Mode = envState.IsMobile and "Touch" or "Mouse"
if light then
light.Shadows = true -- 全平台强制开启实时影子
light.Brightness = 7 -- 保持原版亮度(4 级)
end
end
-- ==================================================================
local success, objects = pcall(function()
return game:GetObjects("rbxassetid://" .. gearId)









The gear that i copy from https://www.rolimons.com/item/116040770