i want my anti cheat script to kick you if u run too fast without having something in their backpack or if they dont have a gamepass, i used jailbreaks gamepass for testing since i bought it here is the server script
local firstpos
while wait() do
for i,v in pairs(game.Workspace:GetChildren()) do
if v:FindFirstChild("HumanoidRootPart") then
if v.Humanoid.Sit == false then
firstpos = v.HumanoidRootPart.Position
local player = game.Players:GetPlayerFromCharacter(v)
wait(1)
if (firstpos - v.HumanoidRootPart.Position).magnitude > 32 then
if not player.Backpack:FindFirstChild("admin") or not game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId,2218187) then
print((firstpos - v.HumanoidRootPart.Position).magnitude)
print("no")
player:Kick("u cant cheat stupid")
end
end
end
end
end
end
if i delete the backpack check then it works just fine but i want it to check in the backpack since those 2 options are the exceptions to being allowed to run fast

3 comments
what?
i want to kick the player if they have neither of them
Yeah just read my answer. I literally explained it all.