Door script issue

You’re moving the door model which doesn’t contain the hitbox, make the hitbox part of the door model. You’re gonna have to change your script with it but I thin you got the basics.

Oh sorry I misunderstood. You sure that every part of the door can’t collide except the hitbox?

What they meant is make all the “decoration” Door Parts CanCollide off.

Have one transparent Part the size of the door itself, then you only need to make that Part cancollide off or on with the script.

So much easier!

1 Like

Alright, so.
This issue is common to new scripters.

replace this line of code with

local doorHitbox = game.Workspace.Door.DoorHitbox

this

local doorHitbox = script.Parent.DoorHitbox

Reminder: Do not get a door from the workspace if there are multiple ones. Always get the one from where the Script is.

It should work now.

Cheers,
Pop

@ValuedStonks