I am making an washer and how am I going to do the agitator turn left and right with the hingeconstraint?

I just made this script i just tried it without any script skill:

--agitator-- made by "eusouumaconta" --

if script.parent.WashValue == true then script.Parent.MotorForce.AngularVelocity = 16 script.Parent.MotorForce.MotorMaxAcceleration = 55.6 wait(0.3) script.Parent.MotorForce.AngularVelocity = -16 script.Parent.MotorForce.MotorMaxAcceleration = 55.6 wait(0.3) script.Parent.MotorForce.AngularVelocity = 16 script.Parent.MotorForce.MotorMaxAcceleration = 55.6 wait(0.3) script.Parent.MotorForce.AngularVelocity = -16 script.Parent.MotorForce.MotorMaxAcceleration = 55.6 end

Can please someone help me i am having trouble with it

2 comments

0

please use code blocks

0

and tell us the problem with the script