I’ve been foraying into the world of NPCs hoping to add a bit more interaction to some of my games but I’ve hit a bit of a wall on something that I thought would be super simple. I’m trying to force my NPCs which use humanoids to sit in seats, but it doesn’t appear that :Sit() or having the NPC touch the seat actually gets them to sit down.
Is forcing NPCs to sit in this manner possible? Am I missing something in the NPCs structure that should make this work? Or have I stumbled across a bug?
Could you use Seat:Sit on the NPC’s Humanoid to make it sit on the seat? If you need the NPC to only sit when it touches the seat, perhaps you could hook up a BasePart.Touched event to it.
That’s bizarre, I tried :Sit() again in the repro and it worked like you said. I must’ve neglected to try it from the server without realizing it, that was silly.
Thanks!
The SeatPart property of the NPC updates, and the Sit value of the humanoid is set to true, so they are sitting, but it just doesn’t appear to be sitting.
I was playing with a few different seated animations and one of them with a lower weight doesn’t seem to loop correctly into the other animations, haven’t gotten to addressing that yet.