What's new
Heapleak - Scripthub

Get the most out of HeapLeak by creating a free account! Once signed in, you’ll gain full access to restricted content, be able to share your own scripts, and participate in our member-only discussions.

No Smoke And Flash

Version / Update: v1.0.0
Download / Script Link
run_on_actor(getactors()[1], [[
local cloneref = cloneref or function(obj) return obj end
local newcclosure = newcclosure or function(fn) return fn end
local hookfunction = hookfunction or function(fn, replacement) return fn end
local lp = game:GetService("Players").LocalPlayer
local workspace = cloneref(game:GetService("Workspace"))
local createInstance = cloneref(Instance.new)
local tinySize = Vector3.new(0.001, 0.001, 0.001)

local hiddenParts = setmetatable({}, { __mode = "k" })
local handledSmoke = setmetatable({}, { __mode = "k" })

local originalGetPropertyChangedSignal
originalGetPropertyChangedSignal = hookfunction(
game.GetPropertyChangedSignal,
newcclosure(function(self, property)
if hiddenParts[self] and (
property == "Size" or
property == "Transparency" or
property == "LocalTransparencyModifier" or
property == "Color"
) then
return createInstance("BindableEvent").Event
end
return originalGetPropertyChangedSignal(self, property)
end)
)

local function hidePart(part)
hiddenParts[part] = true
part.LocalTransparencyModifier = 1
part.Size = tinySize
end

local function processSmokeObject(obj)
if handledSmoke[obj] then
return
end
handledSmoke[obj] = true

pcall(function()
if obj:IsA("BasePart") then
hidePart(obj)
end

for _, item in ipairs(obj:GetDescendants()) do
if item:IsA("BasePart") then
hidePart(item)
elseif item:IsA("ParticleEmitter") or item:IsA("Smoke") then
item.Enabled = false
end
end
end)
end

for _, child in ipairs(workspace:GetChildren()) do
if child.Name == "SmokePart" then
processSmokeObject(child)
end
end

workspace.ChildAdded:Connect(newcclosure(function(child)
if child.Name == "SmokePart" then
processSmokeObject(child)
end
end))

lp.PlayerGui.Flash.Enabled = false
]])
[ View More ]
60f6194e-d579-426f-aa15-2048f9ccb79f.webp


No Smoke And Flash ykykykykykykyk
 
Works on mobile
  1. Yes
Back
Top