I have a question and am seeking for an answer. I need to know how to check if a player is not falling , as I am making an exploit detection system for my build system, so people don’t use exploits to fireserver so I check the distance the player is from the part requested to be built, if the player is further than the max, then they are exploiting. So it kicks them. An issue was players where reportedly getting kicked even after I added this to the code;
local char = game.Workspace:FindFirstChild(plr.Name).HumanoidRootPart if char then if not char.Parent.Humanoid:GetState() ~= Enum.HumanoidStateType.Freefall or not char.Parent.Humanoid:GetState() ~= Enum.HumanoidStateType.FallingDown or not char.Parent.Humanoid:GetState() ~= Enum.HumanoidStateType.Landed or not char.Parent.Humanoid:GetState() ~= Enum.HumanoidStateType.Flying then
So how would I check if they are not falling? I really need a solution. Thanks!