RagdollBindersServer
This was deprecated in 15.11.2
This item is deprecated. Do not use it for new work.
Holds binders for Ragdoll system. Be sure to initialize on the client too. See RagdollBindersClient. Be sure to use a ServiceBag to initialize this service.
tip
Binders can be retrieved directly through a ServiceBag now.
Properties
Ragdoll
Apply this Binder to a humanoid to ragdoll it. Humanoid must already have Ragdollable defined.
local ragdollBinder = serviceBag:GetService(RagdollBindersServer).Ragdoll
local ragdoll = ragdollBinder:Get(humanoid)
if ragdoll then
print("Is ragdolled")
ragdollBinder:Unbind(humanoid)
else
print("Not ragdolled")
ragdollBinder:Bind(humanoid)
end
You can also use RxBinderUtils.observeBoundClass to observe whether a humanoid is ragdolled using an Observable.
info
Like any usage of Observable, be sure to give the Subscription to a Maid (or call Subscription.Destroy on it) once done with the event connection.
local maid = Maid.new()
local ragdollBinder = serviceBag:GetService(RagdollBindersServer).Ragdoll
maid:GiveTask(RxBinderUtils.observeBoundClass(ragdollBinder, humanoid):Subscribe(function(ragdoll)
if ragdoll then
print("Ragdolled!")
else
print("Not ragdolled")
end
end))
Ragdollable
Enables ragdolling on a humanoid.
RagdollHumanoidOnDeath
Automatically applies ragdoll upon humanoid death.
RagdollHumanoidOnFall
Automatically applies ragdoll upon humanoid fall.
UnragdollAutomatically
Automatically unragdolls the humanoid.