How to not make NPCs sit in a seat

Hey! I have NPCs which roam around and follow a player but they’re able to sit in seats and destroy specific elements of my game. For example, a spinning ride with seats they’ll be stuck in and glitch across the map while teleporting etc…

Is it possible to disable seats for NPCs or models inside a specific folder etc?

Thanks!

4 Likes

I wonder if messing with collision groups would fix this

You can make a script that will work for all NPCs in the workspace and what the script will do is it will check the Sit property of the humanoid of each NPC.

for i, npc in pairs(workspace:GetChildren()) do
	if npc:IsA("Model") and npc.Name == "NPC" then
		if npc.Humanoid.Sit == true then
			npc.Humanoid.Sit = false
		end
	end
end
6 Likes