Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Walkspeed checking and setting not working?

Asked by 7 years ago
Edited 7 years ago

So I'm making an Anti-Exploit and when I use my checkHumanoid function, nothing happens. I don't know why this happens. Here's my script: getVars get's the variable, that is not needed in this, I don't think. Could be that the different script isn't being executed

function getVars()
    aWalkspeed = script.Parent.Parent.vars.allowedWalkspeed.Value
    aJumpPower = script.Parent.Parent.vars.allowedJumpPower.Value
    aMaxHealth = script.Parent.Parent.vars.allowedMaxHealth.Value
    aMaxSlopeAngle = script.Parent.Parent.vars.allowedMSA.Value
    aHipheight = script.Parent.Parent.vars.allowedHipHeight.Value
end
function checkHumanoid()
    while true do
        getVars()
    if game.Players.LocalPlayer.Character.Humanoid.WalkSpeed < aWalkspeed or game.Players.LocalPlayer.Character.Humanoid.WalkSpeed > aWalkspeed then
        game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = aWalkspeed
    end
    end
end

checkHumanoid()

Thanks in advance, iiDxpeLyfe

0
Either turn on FE or instead of checking walkspeed, check if their frames go over the normal 60 frames, that means they're cheating. They don't change walkspeed. EzraNehemiah_TF2 3552 — 7y
0
How to check if they go over 60 frames? iiDxpeLyfe 30 — 7y
0
I think I have found why. The getVars function isn't doing anything unless you return those values. Master_JJ 229 — 7y

Answer this question