I wanted to make two blocks when both of them are on the two platform (part) they will open a door and they can only open the door if they are on together. I tried an if statement, it didn't work. So please could some one help me. I have deleted all the script that i made so could someone tried to help me and make a script or help me in some way
COMMUNITY QUESTION
how do I make like two pressure plate and when a certain two blocks hit them they open a door?
1 answer
You have to make a .Touch function that will turn a value for example:
Part1isonbutton = true
and when the part is the other Part then
Part2isonbutton = true
and then check if both values are true in the same function and if so then the button moves/tweens down and the door opens.
and when .TouchedEnded happens then the part who stopped touching goes liek Part1isonbutton = false and then check if the other one is true then move the button up again and close door
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
Ayo perfect explanation!
ok so should i need to set a value on a the block when it is hit?
Yeah a value for eachblock and then unset the value after touchended