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