Humanoid.Ragdoll not working

Hello,

I am trying to make a reliable fling detecting and prevention method, and I am trying to use the humanoid.Ragdoll event. I thought this was supposed to fire when a ‘fling’ occurs, which happens when a humanoid slams into a wall at high speed and ‘flings’ away, causing the player to lose control.
I tried searching online but I can’t find much about the ragdoll event. When does this event fire and is it useful for what I’m trying to accomplish? What could be another way to accomplish this?

This is what I have so far (not sure if this should work):

local Players = game:GetService(“Players”)

local player = Players.LocalPlayer or Players:GetPropertyChangedSignal(“LocalPlayer”):wait()

local char = player.CharacterAdded:Wait()

local hum = char:WaitForChild(‘Humanoid’)

hum.Ragdoll:Connect(function(active)

if active == true then

print(‘Fling detected’)

end

end)

Thanks in advance

1 Like