Disable an R15 Charactermodel/NPC's sitting down

This is probably an existing thread already but the amazing search function doesn’t let me find it.

What do you want to achieve?
I have both R15 custom character rigs the player can take control over and NPC’s with AI using R15. I do not want them to sit down at all, as currently they can walk over a seat and end up sitting down on it.

I’m not sure how to go about doing this.

Humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated,false)

https://developer.roblox.com/en-us/api-reference/function/Humanoid/SetStateEnabled

Won’t you have to keep toggling this every time the character touches a seat?

No, this code completely stop Humanoid from entering seat state until we enabled it back
using Humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated,true)

1 Like

Alright, thank you for your help!

1 Like
--put this script inside npc model
--use server script
local humanoid = script.Parent:WaitForChild("Humanoid",5)

if humanoid then
	humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated,false)
end

Just In case you need it

3 Likes