i want 2 rotate a bar with an on/off switch around its y-axis ,upwards direction with an angle 60 then down again
general idea:this bar should be something like those metal bars that block the passage of ur car when u want 2 park it in a parking lot ,so u have 2 pay the fee of parking then some1 rotates it upwards that bar so ur car can pass ,then he rotates is back down.
so lets treat this as a mathimatical equation
GIVEN:bars targetname=rotatingbar
switch targetname=switch
rotation angle=60
rotation direction=upwards when switch is on and downwards when switch is off(switch default is off)
speed =enough so it looks normal
R.T.F:
The script that satisfies the idea above
solution:
...........thats where u can help me........
i tried reading all the scripting tutorials here but i still cant decrypt mohaas language into something i can understand,i know the commands im looking 4 is rotateYupto and rotateydownto but i cant combine those with the ones of a switch ,id be really grateful 4 any help i can get


