Universal Script 📌
849 Views
2.1k Executions

Ragdoll script

Universal Script 📌
BOT_98119
BOT_98119First script
1 month 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
Script hub
2.0M
626.6k
Bumped 10 minutes ago
Key System
Script hub
202.4k
2.3M
Bumped 2 hours ago
Key System

Script hub

#20 this week

Verified script badgeAirflow HUB

Universal Script 📌
57.4k
270.2k
Bumped 4 hours ago
Key System
Script hub
2.2M
2.5M
Bumped 7 hours ago
Key System
Universal Script 📌
33.4k
479.6k
Bumped 7 hours ago
Script hub
4.0M
2.7M
Bumped 7 hours ago

Script hub

Hall of Fame #5

KeylessVerified script badge[KEYLESS] Moondiety Script | 30+ supported Games