Okay, well I'm trying to make a script to put on a door that will lock it automatically when you shut it. But it's not working I keep getting the error 'missing EOF at 'if'' :/ If anyone could help me with this I'd be very grateful, thank you.
Here's the script I've tried:
scriptname VaultDoorScriptfloat timershort doWhatBegin GameMode if ( getlocked ) else if timer > 0 set timer to timer - getsecondspassed else if doWhat == 0 set timer to timer + 1 set doWhat to 1 return elseif doWhat == 1 lock 100 set doWhat to 0 return endif endif endifEnd