Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

3 comments

0

i can Detect your problem if you tell me where is your Script located at ;)

0

starter character scripts

0

try using the event StateChanged on Humanoid

1 answer

✓ Accepted answer
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

2 comments

0

i will try this

0

sander, do you know how i can detect how much time the player is in the air?

This discussion is preserved as it was. New answers, comments, and votes are closed.