I have a NPC that is supposed to go through a door but its getting blocked even though theres nothing that could block it.
The door is a model and i welded the parts to the primary part to tween it. Apparently the NPC can move if i use CFrame instead of Vector3 to move the door… Its so annoying
Are the doors open on the server, or just the client?
1 Like
I used server script to move the door e
In Studio, File → Settings → Studio. In the last section (Visualization), there’s an option there called Show Decomposition Geometry. Click that and look to see if something is blocking the NPC with the doors open. It basically shows the shapes that the engine uses to figure out collisions.
The doors, are they parts, models, or unions?
1 Like
Nope, It doesnt show anything that blocks the npc. Door Is a model so i used the PrimaryPart to move it, I also realized that the NPC can go through the door if i move the Primarypart using CFrame instead of Vector3
That might be your problem. Unless the model is welded, just moving the primary part won’t move the entire model. You need to use Model:PivotTo()
to move the entire model and it takes a CFrame.
1 Like
I welded all the parts but it only worked if i tweened the primary part using cframe instead of vector3. I don’t get it