I have the ragdoll it works perfectly but I wanna make it so that once you stand in a un collided block you are automatically rag dolled.
game:GetService("ContextActionService"):BindAction("RagdollToggle", function(_,input)
if input == Enum.UserInputState.Begin then
variables_ragdoll.Value = not variables_ragdoll.Value
events_variableserver:FireServer("ragdoll",variables_ragdoll.Value)
if variables_ragdoll.Value == true then
end
end
end, true, Enum.KeyCode.R)
This is the script that if you click r (computer) or ragdoll (on phone/iPad) you will be ragdolled. If you need more help understanding please put it in the comments section what u want.

4 comments
You can connect the same function you used to ragdoll the player with a Bindable that fires on touch.
how? @radiant_Light203
What do you mean how, that's literally how. You just fire the bindable when the touched event occurs. It does whatever functions the bound ContextActionService does.
i dont know how to do that can you show me someway.