-
What do you want to achieve? Keep it simple and clear!
I am making a tank. I want to make it turn left and right. -
What is the issue?
Whenever VehicleSeat.Steer changes, it should change the AngularVelocity of Hinges on my wheels, but it looks like script just ignores changing the property. Other parts of script are functional. -
What solutions have you tried so far?
I tried changing ActuatorType to Motor, Servo
I separated strokes into 2 scripts, sometimes tank can turn sideways, sometimes it only can go forward and reverse.
if script.Parent.Steer == 1 then
tank.L1.AngularVelocity = turnspeed
tank.L2.AngularVelocity = turnspeed
tank.L3.AngularVelocity = turnspeed
tank.L4.AngularVelocity = turnspeed
tank.L5.AngularVelocity = turnspeed
tank.L1S.AngularVelocity = turnspeed
tank.L5S.AngularVelocity = turnspeed
tank.L1.AngularVelocity = turnspeed
tank.L2.AngularVelocity = turnspeed
tank.L3.AngularVelocity = turnspeed
tank.L4.AngularVelocity = turnspeed
tank.L5.AngularVelocity = turnspeed
tank.L1S.AngularVelocity = turnspeed
tank.L5S.AngularVelocity = turnspeed
--print(script.Parent.Steer)
tank.R1.AngularVelocity = turnspeed
tank.R2.AngularVelocity = turnspeed
tank.R3.AngularVelocity = turnspeed
tank.R4.AngularVelocity = turnspeed
tank.R5.AngularVelocity = turnspeed
tank.R1S.AngularVelocity = turnspeed
tank.R5S.AngularVelocity = turnspeed