local input = game:GetService("UserInputService") local fld = workspace.Misc.Zones.LootingItems.Scrap local active = false if _G.xyz123 then pcall(function() _G.xyz123() end) end local function wipe() local all = fld:GetDescendants() for i = 1, #all do local item = all[i] if item.Name == "Scrap_H" then item:Destroy() end end end local function check() if active == false then wipe() return end local items = fld:GetChildren() for _, v in pairs(items) do if v.Name == "ScrapNormal" then local main = v:FindFirstChild("GearMain") if main then local l = main:FindFirstChild("PointLight") if l and l.Enabled then if not v:FindFirstChild("Scrap_H") then local high = Instance.new("Highlight", v) high.Name = "Scrap_H" high.FillColor = Color3.new(0, 0.4, 1) high.OutlineColor = Color3.new(0, 1, 1) high.FillTransparency = 0.441 high.DepthMode = "AlwaysOnTop" end else local old = v:FindFirstChild("Scrap_H") if old then old:Destroy() end end end end end end input.InputBegan:Connect(function(k, g) if g then return end if k.KeyCode == Enum.KeyCode.F8 then active = true print("on") elseif k.KeyCode == Enum.KeyCode.F10 then active = false wipe() print("off") end end) local function loop() if _G.xyz123 ~= nil then check() task.wait(0.372) loop() end end _G.xyz123 = function() _G.xyz123 = nil active = false wipe() end task.spawn(loop)