I tried to stop humanoid being ragdoll so I use SetStateEnabled but it didn’t work, I tried to block jump too and it failed too.
adding bodyForce sucessfully worked. but only SetStateEnabled doesn’t work
there was no error, also it’s server sided script
if nogTarget ~= nil then
for _, v in pairs(nogTarget.Character:GetDescendants()) do
if v:IsA("BasePart") then
local bodyForce = Instance.new("BodyForce")
bodyForce.Force = Vector3.new(0, v:GetMass() * workspace.Gravity, 0)
bodyForce.Parent = v
end
end
local hmd = nogTarget.Character:FindFirstChildOfClass("Humanoid")
hmd:SetStateEnabled(Enum.HumanoidStateType.FallingDown, false)
hmd:SetStateEnabled(Enum.HumanoidStateType.Ragdoll, false)
end