-- FlashlightTool.lua -- SETUP: Put this LocalScript inside StarterPack. Nothing else needed. local Players = game:GetService("Players") local player = Players.LocalPlayer local backpack = player:WaitForChild("Backpack") local MESH_ID = "rbxassetid://137073484684190" local MESH_TEXTURE = "rbxassetid://120980688754080" local BEAM_RANGE = 60 local BEAM_ANGLE = 45 local BEAM_BRIGHT = 5 local BEAM_SHADOWS = true local function buildFlashlight() local tool = Instance.new("Tool") tool.Name = "Flashlight" tool.RequiresHandle = true tool.CanBeDropped = false tool.ToolTip = "Click to toggle flashlight" local handle = Instance.new("Part") handle.Name = "Handle" handle.Size = Vector3.new(0.3, 1.2, 0.3) handle.Material = Enum.Material.SmoothPlastic handle.Color = Color3.fromRGB(30, 30, 30) handle.Parent = tool local mesh = Instance.new("SpecialMesh") mesh.MeshType = Enum.MeshType.FileMesh mesh.MeshId = MESH_ID mesh.TextureId = MESH_TEXTURE mesh.Scale = Vector3.new(1, 1, 1) mesh.Parent = handle local spotlight = Instance.new("SpotLight") spotlight.Name = "Beam" spotlight.Enabled = false spotlight.Brightness = BEAM_BRIGHT spotlight.Range = BEAM_RANGE spotlight.Angle = BEAM_ANGLE spotlight.Shadows = BEAM_SHADOWS spotlight.Face = Enum.NormalId.Front spotlight.Color = Color3.fromRGB(255, 244, 214) spotlight.Parent = handle local on = false tool.Activated:Connect(function() on = not on spotlight.Enabled = on end) tool.Unequipped:Connect(function() on = false spotlight.Enabled = false end) tool.Parent = backpack end buildFlashlight() -- Rebuild after respawn player.CharacterAdded:Connect(function() task.wait(0.5) backpack = player:WaitForChild("Backpack") if not backpack:FindFirstChild("Flashlight") then buildFlashlight() end end)