Help With Issue With Functions?
1 | function MoveWaterDoor(part) |
2 | while Button 1. Value ~ = 1 and Button 2. Value ~ = 1 and Button 2. Value ~ = 1 do |
5 | for n = 0 , MagWDoor, IncrementWDoor do |
6 | WaterDoorer.CFrame = WaterDoorer.CFrame + (DirectionWDoor * IncrementWDoor) |
7 | wait( (TimeWDoor/MagWDoor) * IncrementWDoor ) |
This following function doesn't work. It worked before I added the part where it needs to wait, but now it won't work.
It's supposed to keep the door waiting until three buttons are pressed, and once the buttons are pressed it opens the door. The problem is that the door doesn't open... at least not when the script is complete, as mentioned before.
If anyone could help me figure out this annoying issue, that'd be great, thanks.