Humanoid State Type Getting Up only works when I type it in the output twice

Simplest Way to Make a Ragdoll System - Roblox Studio 2023 (youtube.com)

This is the tutorial I followed, and I setup a keybind and death function for it. HOWEVER, the unragdoll function does not work whatsoever for no reason. I played around and found out that typing

humanoid:ChangeState(Enum.HumanoidStateType.GettingUp)

in the output after that code was ran through the unragdolled function would work, but I have no idea why or how to recreate that via local or server scripts. Instead, the stupid characters just flop on the ground like a fish and NO ONE ELSE has had this happen from where I’ve looked.