Script won't work

Hello!
I made a script, sadly it won’t work, can I have an advice?Hello123-1

image
the problem is that you can’t compare vectors because their values may be slightly different. Sorry, I don’t know how I could solve it.

1 Like

What do you wish to achieve with this script? If you want to open a door, this is an extremely cumbersome way to do so. I recommend you do not check if the door parts are in position, but rather change a variable when you open or close the door. As for the animating, TweenService would be best.

1 Like