is it a normal script? and did you set the limit ?
i did and its a server script i put it in a serverscriptservice
Did you resize the size of the limbs higher that the limit using ur testing hack app?
This is what I did:
local limit = Vector3.new(20,20,20)--- limit e.g Vector3.new(25,25,25) or Vector3.new(0,25,0)
game.Players.PlayerAdded:Connect(function(player)
local character = player.Character or player.CharacterAdded:Wait()
for _,bodyPart in pairs(character:GetChildren()) do
if bodyPart:IsA("BasePart") then
bodyPart:GetPropertyChangedSignal("Size"):Connect(function()
if bodyPart.Size.X > limit.X or bodyPart.Size.Y > limit.Y or bodyPart.Size.Z > limit.Z then
player:Kick("Don't hack again >:(")
end
end)
end
end
end)
For some reason it doesnt work for me
also yes and no i used studio’s command bar
Works for me though. That’s really weird
Maybe change the size of the limbs in the server and not the client
um it just works if you resize it from server side
Ok, lemme fix that real quick,
Add a local script in the startercharacterscripts
Local script code:
local limit = Vector3.new(20,20,20)--- limit e.g Vector3.new(25,25,25) or Vector3.new(0,25,0)
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
for _,bodyPart in pairs(character:GetChildren()) do
if bodyPart:IsA("BasePart") then
bodyPart:GetPropertyChangedSignal("Size"):Connect(function()
if bodyPart.Size.X > limit.X or bodyPart.Size.Y > limit.Y or bodyPart.Size.Z > limit.Z then
game.ReplicatedStorage:WaitForChild("KickPlayer"):FireServer()
end
end)
end
end
Then add a remote event in the replicated storage and add a normal script in the serverscriptservice
Normal Script Code:
game.ReplicatedStorage:WaitForChild("KickPlayer").OnServerEvent:Connect(function(player)
player:Kick("dont hack again pls")
end)
I already have a remote that bans the players and they can just delete the script?
Hackers can delete the local script so this may seem impossible. I suggest you have a kick-vote system.
is there a function loop so i can revert the exploiter’s limbs to normal size every time
Or nevermind i will go back to client anti cheat thank you for replying atleast
If you’re handling this on the client then you may as well kick the player on the client too.
https://developer.roblox.com/en-us/api-reference/function/Player/Kick
Local scripts can kick the local player they are executing for.