How to disable autorotate in a physics state

Hello,

I’ve been trying to make a ragdoll, and I disable player movement by changing the HumanoidState to Physics. However, in this state, the player can still turn and twist with shiftlock. I tried disabling AutoRotate to prevent this, but it doesn’t work in a physics state. Is there a way I can disable the player from rotating while ragdolled?

disable shiftlock‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎

no‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎

yes

if that’s not an option, then you will have to recode your ragdoll engine

SIIIIIIIIIIIGH! okaaaayyyyyy! :frowning:

local Players = game:GetService("Players")

local client = Players.LocalPlayer

task.wait(3)

local character = client.Character
local humanoid = character.Humanoid

humanoid.AutoRotate = false
humanoid:ChangeState(Enum.HumanoidStateType.Physics)

Humanoid.AutoRotate does work with this code snippet

1 Like

doesn’t solve the problem with exploiters
SO no

disconnect player from character temporally
Althrough you will have to ensure that player will get reasigned to character back/will get a new one

local char = plr.Character
plr.Character=nil
char.Parent=workspace

cant you just disable it temporarily

i replaced the state logic with platformstanding and it works now

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.