Recently, I came across a ragdoll module on the Roblox Developer Forum. This module is a great utility for adding realistic ragdoll physics to characters in Roblox games. However, I’ve noticed that some of its internal components are deprecated and can be optimized to improve user experience (UX).
→ Changes
- Replaced deprecated methods with its newer version.
- Implemented a single
.Start()
method for both client and server sided logic. - Improved code efficiently. No lag were found during testing.
→ API
-- Setup the character for ragdoll physics
-- @param char: Rigged model
-- @return nil
.Setup(char)
-- Apply ragdoll physics to the character
-- @param char: Rigged model
-- @param ragdoll: { Strength: number, Direction: Vector3 }
-- @param t: number
-- @return nil
.Ragdoll(char, ragdoll, t)
-- Initialize the module
-- @param nil
-- @return nil
.Start()
→ Model: here
Hope you enjoy this resource.