local z=require(script.Parent.Parent.lib.t)local Y=z.enum(Enum.HumanoidStateType)local function Z(z)assert(Y(z))return z==Enum.HumanoidStateType.Running or z==Enum.HumanoidStateType.RunningNoPhysics or z==Enum.HumanoidStateType.Landed end return Z
--[[
	Checks if a character is currently on the ground by their HumanoidStateType.
]]

local t = require(script.Parent.Parent.lib.t)

local isGroundedCheck = t.enum(Enum.HumanoidStateType)

local function isGrounded(state)
	assert(isGroundedCheck(state))

	return state == Enum.HumanoidStateType.Running
		or state == Enum.HumanoidStateType.RunningNoPhysics
		or state == Enum.HumanoidStateType.Landed
end

return isGrounded
