I have this server sided ragdoll code that can ragdoll and unragdoll a player. It works very well but there is one problem that I can’t figure out.
When I am jumping/falling and I get ragdolled, the humanoid’s platform stand property somehow gets set back to false even when I set it to true.
I tried looking through my code using ctrl + shift + f but I couldn’t find anything that would’ve changed the platform stand property.
As you can see, I can move around and jump while ragdolled.
These are the only places where I believe platform stand could be changed:
this is the ragdoll code, state
means ragdoll or not.
if state then
Humanoid.PlatformStand = true
local weldConstraint = Instance.new("WeldConstraint")
weldConstraint.Part0 = characterSubject.HumanoidRootPart
weldConstraint.Part1 = characterSubject.Torso
weldConstraint.Name = "RagdollWeld"
weldConstraint.Parent = characterSubject.HumanoidRootPart
characterSubject.HumanoidRootPart.RootJoint.Enabled = false
else
Humanoid.PlatformStand = false
characterSubject.HumanoidRootPart.RootJoint.Enabled = true
if characterSubject.HumanoidRootPart:FindFirstChild("RagdollWeld") then
characterSubject.HumanoidRootPart.RagdollWeld:Destroy()
end
end
Does anyone know what might be setting platformstand to false?