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)