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.

Anti Tamper

Version / Update: v1.0.0
Download / Script Link
-- all made by AurexScripts
-- join our discord server!
-- https://discord.gg/F3QzKxpZrA

local TAMPER_MSG = "Tamper Detected"
local detected = false
local checks = {}

checks[1] = {
name = "game_instance",
run = function()
if typeof(game) ~= "Instance" then return false end
if typeof(workspace) ~= "Instance" then return false end
return true
end
}

checks[2] = {
name = "script_valid",
run = function()
if typeof(script) ~= "Instance" then return false end
if not script:IsA("LuaSourceContainer") then return false end
return true
end
}

checks[3] = {
name = "game_props",
run = function()
if type(game.PlaceId) ~= "number" then return false end
if type(game.JobId) ~= "string" then return false end
if #game.JobId == 0 then return false end
return true
end
}

checks[4] = {
name = "local_player",
run = function()
local ok, Players = pcall(game.GetService, game, "Players")
if not ok or typeof(Players) ~= "Instance" then return false end
local lp = Players.LocalPlayer
if not lp or not lp:IsA("Player") then return false end
return true
end
}

checks[5] = {
name = "character",
run = function()
local Players = game:GetService("Players")
local lp = Players.LocalPlayer
if not lp then return false end
local char = lp.Character or lp.CharacterAdded:Wait(5)
if not char then return false end
local hrp = char:FindFirstChild("HumanoidRootPart")
if not hrp or not hrp:IsA("BasePart") then return false end
return true
end
}

checks[6] = {
name = "services",
run = function()
local needed = {"RunService", "ReplicatedStorage", "UserInputService", "TweenService"}
for _, name in ipairs(needed) do
local ok, s = pcall(game.GetService, game, name)
if not ok or typeof(s) ~= "Instance" then return false end
end
return true
end
}

checks[7] = {
name = "data_types",
run = function()
if typeof(Vector3.new(0, 0, 0)) ~= "Vector3" then return false end
if typeof(CFrame.new()) ~= "CFrame" then return false end
if typeof(Color3.new()) ~= "Color3" then return false end
if typeof(UDim2.new()) ~= "UDim2" then return false end
if typeof(Vector2.new()) ~= "Vector2" then return false end
return true
end
}

checks[8] = {
name = "getfenv_check",
run = function()
local ok1, env1 = pcall(getfenv, 0)
if not ok1 or type(env1) ~= "table" then return false end
local ok2, env2 = pcall(getfenv, 1)
if not ok2 or type(env2) ~= "table" then return false end
if env1["game"] == nil and env2["game"] == nil then return false end
if env1["workspace"] == nil and env2["workspace"] == nil then return false end
return true
end
}

checks[9] = {
name = "getenv_check",
run = function()
local env = getfenv(0)
if type(env) ~= "table" then return false end
if type(env["print"]) ~= "function" then return false end
if type(env["pcall"]) ~= "function" then return false end
if type(env["typeof"]) ~= "function" then return false end
if type(env["tick"]) ~= "function" then return false end
return true
end
}

checks[10] = {
name = "runservice",
run = function()
local ok, RS = pcall(game.GetService, game, "RunService")
if not ok or typeof(RS) ~= "Instance" then return false end
local ok2 = pcall(function() return RS:IsClient() end)
local ok3 = pcall(function() return RS:IsServer() end)
if not ok2 and not ok3 then return false end
return true
end
}

local function runChecks()
for i = 1, #checks do
local ok, result = pcall(checks[i].run)
if not ok or not result then
detected = true
return
end
end
end

runChecks()

if detected then
print(TAMPER_MSG)
return
end

local RS = game:GetService("RunService")
local last = tick()

RS.Heartbeat:Connect(function()
local now = tick()
if now - last >= 0.5 then
last = now
runChecks()
if detected then
print(TAMPER_MSG)
end
end
end)

-- MAKE SURE TO OBFUSCATE THE WHOLE CODE AFTER YOU
-- PASTE YOUR SCRIPT BELOW THIS LINE
[ View More ]
28905b33-72dc-4765-8fef-771135ae8875.webp


Protect You're Script from skidders :>make sure you obfuscated the whole script after pasted ur code at the bottomhttps://wearedevs.net/obfuscator
 
Works on mobile
  1. Yes
Back
Top