Hello, developers!
Today, I made yet another script - NoSpeedHax Xtreme, a part of NoCheat Xtreme Prime, which will be fully free! This anticheat uses advanced algorithms to analyze player movement and temp bans every hacker that decides to go too fast! Please review and rate my code
NoSpeedHax Xtreme.rbxm (2.4 KB)
Text Format
Script
Name: NoSpeedHax Xtreme
Code:
--// NoSpeedHax Xtreme
--// Made with ♥ by @dauser - 10/03/2023
require(script.ProtectionModuleXtreme)(script)
Services.Players.PlayerAdded:Connect(function(plr)
if Banner.isbanned(plr.UserId) then
plr:Kick('You are temp-banned')
end
end)
while task.wait(0.3) do
for i, v in pairs(Services.Players:GetChildren()) do
if haxChecker[v.UserId] then
Banner.ban(v.UserId)
v:Kick('haxor is very bad, your ban will expire soon')
task.wait(0.69)
end
end
task.wait(0.069)
end
Children:
ModuleScript
Name: ProtectionModuleXtreme
Script:
return function(scr)
local env = getfenv(2)
env['script'] = scr
for i, v in pairs(script:GetChildren()) do
env[v.Name] = require(v)
end
end
Children:
ModuleScript
Name: Banner
Script:
local datastore = game:GetService('DataStoreService'):GetDataStore('HaxerDemolisher')
local t = {}
function t.ban(id)
return datastore:SetAsync(id, tick())
end
function t.isbanned(id)
local val = datastore:GetAsync(id)
if val and tick()-val < 60*60*24 then
return true, val
end
return false
end
return t
ModuleScript
Name: Services
Script:
local t = {}
local mt = {
__index = function(self, key)
if not rawget(self, key) then
rawset(self, key, game:GetService(key))
end
return rawget(self, key)
end,
}
setmetatable(t, mt)
return t
ModuleScript
Name: haxChecker
Script:
local t = {}
local mt = {
__index = function(self, key)
local noob = game:GetService('Players'):GetPlayerByUserId(tonumber(key))
if noob then
if noob.Character then
if noob.Character:FindFirstChild('HumanoidRootPart') then
local velocity = noob.Character.HumanoidRootPart.Velocity.Magnitude
if velocity then
if velocity > 30 then
return true
end
end
end
end
end
return false
end,
}
setmetatable(t, mt)
return t