function onClicked(playerWhoClicked)
if door2.Position==Vector3.new(-77.5, 21.12, 20.75) then
for i = 1,60 do
wait()
door.CFrame = door.CFrame - Vector3.new(0, 0.2, 0)
door2.CFrame = door2.CFrame - Vector3.new(0, 0.2, 0)
end
end
Hello! I need a bit of help on 'if door2.Position==Vector3.new() then', I do not understand what's wrong, as isn't vector3 = X,Y,Z. and aren't these inputs X,Y,Z? I'm honestly really confused and if anyone can reply that would be amazing!
(Apologies for the disgusting code in advance xd), again please reply!
Thanks, userdetail super super bad scripter.

1 comment
I would just make a variable local atPosition = false and you set it when it reaches that position