Universal Script 📌
62 Views
5 Executions

Ragdoll script

Universal Script 📌
BOT_98119
BOT_98119First script
2 days ago · Updated

Reviewed by QueueHeroPaid revieweron How review works

Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

i want universal script its ragdoll script

View Raw
local button = script.Parent
local player = game.Players.LocalPlayer

local ragdolled = false

button.Text = "Ragdoll"

button.Activated:Connect(function()
    local character = player.Character
    if not character then return end

    local humanoid = character:FindFirstChildOfClass("Humanoid")
    if not humanoid then return end

    ragdolled = not ragdolled

    if ragdolled then
        humanoid:ChangeState(Enum.HumanoidStateType.Physics)
        humanoid:SetStateEnabled(
            Enum.HumanoidStateType.GettingUp,
            false
        )
        button.Text = "Unragdoll"
    else
        humanoid:SetStateEnabled(
            Enum.HumanoidStateType.GettingUp,
            true
        )
        humanoid:ChangeState(Enum.HumanoidStateType.GettingUp)
        button.Text = "Ragdoll"
    end
end)


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

Tags

More universal scripts

See all
Universal Script 📌
1.9k
1.7k
Bumped 32 minutes ago
Key System
Universal Script 📌
112.5k
732.0k
Bumped 35 minutes ago
Universal Script 📌
61
8
Approved 59 minutes ago
Script hub
164.4k
1.2M
Bumped 2 hours ago
Key System
Script hub
79.8k
1.6k
Bumped 5 hours ago