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

my ragdoll script only works 1 time, and shows no errors. how i can fix it?

Asked by 5 years ago

ok i'm trying to make a ragdoll script using the humanoid states, this script is working fine but it only works 1 time. can someone help me please?

script https://pastebin.com/RLtsTjFF

srry for bad english

0
i can Detect your problem if you tell me where is your Script located at ;) FullMetalEdward45221 106 — 5y
0
starter character scripts andremalaquias 2 — 5y
0
try using the event StateChanged on Humanoid Xx_XSanderPlayXx 160 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago
if script.Parent:FindFirstChild("Humanoid") then
    script.Parent.Humanoid.StateChanged:Connect(function(old, new)
        if new == Enum.HumanoidStateType.Freefall then
            --The other stuff
        end
    end)
end

I hope this helped

0
i will try this andremalaquias 2 — 5y
0
sander, do you know how i can detect how much time the player is in the air? andremalaquias 2 — 5y
Ad

Answer this question