[Rate my code] NoCheat Xtreme Prime | NoSpeedHax Xtreme

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
I will accept criticism
11 Likes

Could use with a join check to ban users who join

This is the best code in the world, even better than my Pi Pie fix


the left is mine, the right is roblox’s

the services one is cool, you started with peepee.poopoo to entertainment to a module for that? that’s insane

there’s no need for improvements for now due to how amazing the code is

3 Likes

Best anticheat ever. CheatBlockerPRO stands no chance against this marvel of code.

I’d like to see improvements though, please add an AI chatbot for absolutely no reason at all.

2 Likes

I’m sorry but… this doesn’t have the same feel as the other amazing anti cheats.

The code… actually works. I cant support this any longer… :sob:

You need to make all the code CLIENT SIDED!!

:exploding_head:

-- client side btw
local Players = game:FindFirstChild(game:GetService(“Players”).Name)
local Player = Players:FindFirstChild(Players.LocalPlayer.Name)
local Character = Player:FindFirstChild(Player.Name)
local Humanoid = Character:FindFirstChild(Character.Humanoid.Name)

Humanoid.Died:Connect(function()
   Player:Kick(“hacker!!!”)
end)

local Workspace = game:FindFirstChild(game:GetService(“Workspace”).Name)

if Workspace then
     Player:Kick(“HAXER TRIED TO MAKE WORKSPACE!!”)
else
     Player:Kick(“NO WORKSPACE!!! HAX DETECTED!!”)
end

function printMessage(message)
    print(message)
    return math.huge ^ math.huge / math.huge
end

function getScript()
    return script
end

function getService(service)
    return game:GetService(service)
end
2 Likes

Sorry for forcing the user to jump in order to get banned :sob:

1 Like

> clientside code
> clientside code
peak code bruv
lovin’ it
better than the 2022 baseplate