-- made by YuiisScripts local UserInputService = game:GetService("UserInputService") local RunService = game:GetService("RunService") local invisible = false local lastToggle = 0 local debounceTime = 0.3 local function setVisibility(state) for _, obj in ipairs(workspace:GetDescendants()) do if obj:IsA("BasePart") then obj.LocalTransparencyModifier = state and 1 or 0 elseif obj:IsA("Decal") or obj:IsA("Texture") then obj.Transparency = state and 1 or 0 end end end UserInputService.InputBegan:Connect(function(input, processed) if processed then return end if input.KeyCode == Enum.KeyCode.Equals and tick() - lastToggle > debounceTime then invisible = not invisible setVisibility(invisible) lastToggle = tick() end end) workspace.DescendantAdded:Connect(function(obj) if invisible then if obj:IsA("BasePart") then obj.LocalTransparencyModifier = 1 elseif obj:IsA("Decal") or obj:IsA("Texture") then obj.Transparency = 1 end end end)