Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Wanna make a script that once you touch it you ragdoll?

Asked by 3 years ago

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.

0
You can connect the same function you used to ragdoll the player with a Bindable that fires on touch. radiant_Light203 1166 — 3y
0
how? @radiant_Light203 UNIMAKZIN00 41 — 3y
0
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. radiant_Light203 1166 — 3y
0
i dont know how to do that can you show me someway. UNIMAKZIN00 41 — 3y

Answer this question