" attempt to index nil with 'ragdollAdded' " Ragdoll help

You can write your topic however you want, but you need to answer these questions:

  1. Im using @EchoReaper Ragdoll module and Im trying to make it so that the enemy player ragdolls when hit But it keep saying " attempt to index nil with ‘ragdollAdded’ " .

  2. I tried looking through the module for help but nothing really helped .

local ReplicatedStorage = game:GetService("ReplicatedStorage")

local RagdollHandler = ReplicatedStorage:WaitForChild("RagdollHandler")

local rag = require(RagdollHandler)

rag.ragdollAdded(Humanoid)

I didnt wanna put the whole script so i just put the ragdoll part up .

It would seem that the issue is that the “Humanoid” you provided to the ragdollAdded function is nil, or in other words, doesn’t exist. Try troubleshooting the humanoid, such as print(Humanoid) before calling ragdollAdded() to confirm that the humanoid is nil, then backtracking through your code to find where you set the Humanoid (if at all) and debug that code.