Universal Script 📌
1.6k Views
117 Executions

invisible map script for afk fps boost toggleable

Universal Script 📌
YuiisScripts
YuiisScriptsFirst script
1 year 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

makes the map and everything else entirely invisible, therefore increasing fps press "=" to toggle

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



Comments

1
Log in to join the conversation. Login
DcruzRace's profile picture
DcruzRace1 year ago

Dude I think lagging is better Then not being able to see anything

1

Tags

More universal scripts

See all
Script hub
425.5k
815.6k
Bumped 35 minutes ago
Key System

Script hub

Hall of Fame #5

Verified script badgeRonix Hub | 71 Supported Games + OP!

Script hub
3.0M
387.8k
Bumped 36 minutes ago
Key System

Script hub

Hall of Fame #8

Verified script badgeOverflow #1 SAE, MM2 & More

Universal Script 📌
51
1
Approved 38 minutes ago
Universal Script 📌
162.3k
51.2k
Bumped 1 hour ago