Ragdoll
Ragdoll package for converting a player's character into a ragdoll.
Install with wally by adding the following to your wally.toml
:
Ragdoll = "dig1t/ragdoll@1.0.4"
Properties
isCollidable
Ragdoll.isCollidable:
boolean
Whether or not the ragdoll is collidable (default: false)
destroyTime
Ragdoll.destroyTime:
number
Seconds before the ragdoll is destroyed (default: 5)
Functions
setup
Sets up the player's collision group and sets the RagdollReady attribute to true.
This should be run when the player's character is created or loaded.
playerDied
Ragdoll.
playerDied
(
destroyTime:
number?
,
--
The time in seconds before the ragdoll is destroyed
keepRagdollInWorld:
boolean?
--
Whether or not to keep the ragdoll in the world
) →
(
)
Converts the player's character into a ragdoll and removes the player's character.
This should be run when the player dies.