hello everyone.
i have a problem in my game that have a lot of hackers there is some of them taking dev products for free and there is who fly and inf jump
does anyone know how i can make a good anti cheat that can catch them ?
hello everyone.
i have a problem in my game that have a lot of hackers there is some of them taking dev products for free and there is who fly and inf jump
does anyone know how i can make a good anti cheat that can catch them ?
Wrong category, probably shift this to #help-and-feedback:scripting-support or something.
As for your main question, we can’t really comment without any code you already have. Mind sharing the snippets of your Script that handles your Dev Products? There is no one-size-fits-all anti-cheat system, so it would be up to you to implement checks in your own game to ensure little of your scripts can be exploited.
thx for let me know the best category
for the dev products i use
MarketplaceService.PromptProductPurchaseFinished:Connect(function(Player, Product, IsPurchased)
if IsPurchased then
print(Player)
if Product == 1234 then
"function to transfer data to the datastore in a table"
end
end
end)
You could fix speed hacks by just making it so that every .1 seconds it sets your speed to what ever speed you want, And for dev products I am not sure but try putting them in server storage because hackers cannot access that. For extra security just make a script that checks if you own the item and if you dont just ban or kick the hacker.
i want something more advanced like anti fly, noclip, btools and other and set speed and jump and fix the dev products
Hmm, you could check if the player goes higher than a certain speed. Do you have loadstring on?
i found a video on youtube say that hackers can get dev products and gamepasses for free if i use PromptProductPurchaseFinished
Use reciepts, there is a known exploit where you can use marketplaceservice to basically signal that a purchase went through.
Use the server for processing buying. For example, don’t tell the server the cost of anything. Have the server store it in a module that is secured inside of ServerStorage or ServerScriptService. Now for your problem. Have the user fire a remote event with a argument which tells the server that you are trying to buy x product. Instead of doing it on the client do it on the server. Exploiters can tamper with remote events, local variables, script functions, and more. Do not manage any of that kind of stuff on the client.
im not using the remote i use the bindable
can u give me an example for how to use it please
removed: I guess this was wrong
In your game is there a way to fly or super jump like an inf jump?
no there is no way the player can do it only by cheating
Well that sure helps avoiding hacks of this type.
A try at Anti flying and inf jumps.
Server script in ServerScriptService…
local rs = game:GetService("RunService")
local Players = game:GetService("Players")
local MAX_JUMPS = 1
local MAX_JUMP_TIME = 2
Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
local humanoid = character:WaitForChild("Humanoid")
local jumpCount = 0
local isFlying = false
local jumpStartTime = 0
humanoid.StateChanged:Connect(function(_, newState)
if newState == Enum.HumanoidStateType.Jumping then
jumpCount += 1
if jumpCount > MAX_JUMPS then
humanoid:ChangeState(Enum.HumanoidStateType.Freefall)
isFlying = true
jumpStartTime = tick()
end
elseif newState == Enum.HumanoidStateType.Freefall then
jumpCount = 0
end
end)
while rs.Stepped:Wait() do
if isFlying and (tick() - jumpStartTime > MAX_JUMP_TIME) then
player:Kick("Kicked for flying or hacking!") break
end task.wait(1)
end
end)
end)
Flying isn’t an easy fix, it’s an issue with Roblox’s client-authoritative movement system. You will need to add so many checks for edge cases and such to avoid punishing innocent players. And Roblox’s ban policy gives exploiters way too many chances, so they’re gradually returning to the platform despite the anti-cheat. You can write detections that catch maybe ~80% of them but ultimately you still need to implement a strong reporting and moderation framework.
thx i will try to test it i hope it works
thx for the script for the anti fly its works but the inf jump its not but thx for giving me idea for how to stop it
Roblox already gives an example here: MarketplaceService | Documentation - Roblox Creator Hub
He wanted to protect his devproducts not remotes