Hello reader,
Ever wanted to make easy ragdoll that look somewhat smooth and is easy to set up and make? Well look no further!
This topic will teach you on how to use my newly designed ragdoll module.
R15 kinda weird, working on a fix
Get the module here
For dudes who saw my other module
If u saw my other post about my other module script and are wondering: Its like almost the same, what did you even do/change?
Well, the module is easier to customize and read, updating it will also be easier.
API functions etc
module.new()
making new class
class:Ragdoll()
ragdoll
class:Unragdoll()
unragdoll the caracter
What do i put in the module.new()?
Well you put the following things:
argument 1, the character you would like to ragdoll
argument 2 (optional), the amount of seconds the ragdoll will last.
argument 3 (also optional), if you want to replace the constraints with ropes
TUTORIAL
We first need to rig the character of the player you want to ragdoll, doing that is easy. All you got to do is:
local mod = require(game.ReplicatedStorage.RagdollModule)
local riggedCharacter = mod.new(Character, amount of sec, ropes?? (boolean) )
and ur done rigging the character. Now you can call for example :Ragdoll(), it would look something like this: riggedCharacter:Ragdoll()
Ragdoll on part hit example script
local part = script.Parent
local deb = false
local mod = require(game.ReplicatedStorage.RagdollModule)
part.Touched:Connect(function(hit)
local p = hit.Parent:FindFirstChildWhichIsA("Humanoid")
if p and p.Health > 0 then
if not deb then
deb = true
local c = mod.new(hit.Parent, 2, false)
c:Timed()
task.wait(3)
deb = false
end
end
end)
I hope my module will be used. Thanks for reading, wish you a nice day further.