By default, a character in Roblox has a function that if the character turns over by a certain degree, then he “loses consciousness” for a while, as if he were under the action of the PlatformStand. I need to disable this feature. Tell me how it can be done. I am grateful in advance.
Works in local scripts or script with RunContext Client.
local player = game:GetService("Players").LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local humanoid = char:WaitForChild("Humanoid")
humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll, false)