How to run EchoReaper r15 ragdoll module

So I know not much about module scripts and I wanted to know how to use echo reapers Ragdoll:

But I don’t know how to use it. I want it so if the player presses x they ragdoll but it doesn’t work. Here what I tried:

local UserInputService = game:GetService("UserInputService")
local Ragdoll = require(game.ReplicatedStorage.RagdollHandler)

UserInputService.InputBegan:Connect(function(input, gameProcessedEvent)
	if input.UserInputType == Enum.UserInputType.Keyboard then
		if input.KeyCode == Enum.KeyCode.X then
			print("X")
			Ragdoll:setRagdollEnabled()
		end
	end
end)
1 Like

I took a look into the module it appears that you have to pass the character’s humanoid and whether to enable or disable it.

Ragdoll:setRagdollEnabled(game:GetService('Players').LocalPlayer.Character:WaitForChild('Humanoid'), true)
4 Likes

You’ll probably have to do it server side too.

1 Like