Help with vector

If you want a player to be able to click the door so it opens.

You can do a clickdetector and a MouseClick event.

–where the clickdetector is–.MouseClick:Connect(function()
–stuff you want to do–
end)

Also, all of this can be found in the API…

Ehhh sorry but do I add the click detector into the keyhole and what do I replace for
the code thing u told me

Sorry I ain’t the best at this but thanks for helping me

You can place the clickdetector in whatever part you want the player to click the door.
Also, I would advise you to learn the basics of lua.

Ok ima put in keyhole now what do I replace with the click detector script

Oh nvm then I will try to figure out