-
What do you want to achieve? Keep it simple and clear!
I am trying to make a tank for a tank game @GENESIS_GAMINGYT1 and I are trying to make. -
What is the issue? Include screenshots / videos if possible!
I am using hinges and a vehicle seat to make the tank move, but it doesn’t move. -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I’ve been looking through devforum, youtube, and the documentation site for help but I can’t get it to work. -
Additional Info
- I am using hinges connected from the axle part to the wheel part to move the tank.
- I am using a VehicleSeat for the controlls
- The hinges AcuatorType is set to motor
- The vehicle seats max speed is 25 (default)
- Code (server script inside of the seat)
---Hinges
--Left
local L1 = script.Parent.Parent.Left.L1
local L2 = script.Parent.Parent.Left.L2
local L3 = script.Parent.Parent.Left.L3
local L4 = script.Parent.Parent.Left.L4
local L5 = script.Parent.Parent.Left.L5
local L6 = script.Parent.Parent.Left.L6
local L7 = script.Parent.Parent.Left.L7
local L8 = script.Parent.Parent.Left.L8
local L9 = script.Parent.Parent.Left.L9
--Right
local R1 = script.Parent.Parent.Right.R1
local R2 = script.Parent.Parent.Right.R2
local R3 = script.Parent.Parent.Right.R3
local R4 = script.Parent.Parent.Right.R4
local R5 = script.Parent.Parent.Right.R5
local R6 = script.Parent.Parent.Right.R6
local R7 = script.Parent.Parent.Right.R7
local R8 = script.Parent.Parent.Right.R8
local R9 = script.Parent.Parent.Right.R9
---Misc
local Speed = 30
---Functions
script.Parent.Changed:Connect(function(Property)
if script.Parent.Throttle > 0 then
L1.AngularVelocity = Speed
L2.AngularVelocity = Speed
L3.AngularVelocity = Speed
L4.AngularVelocity = Speed
L5.AngularVelocity = Speed
L6.AngularVelocity = Speed
L7.AngularVelocity = Speed
L8.AngularVelocity = Speed
L9.AngularVelocity = Speed
R1.AngularVelocity = Speed
R2.AngularVelocity = Speed
R3.AngularVelocity = Speed
R4.AngularVelocity = Speed
R5.AngularVelocity = Speed
R6.AngularVelocity = Speed
R7.AngularVelocity = Speed
R8.AngularVelocity = Speed
R9.AngularVelocity = Speed
else
L1.AngularVelocity = 0
L2.AngularVelocity = 0
L3.AngularVelocity = 0
L4.AngularVelocity = 0
L5.AngularVelocity = 0
L6.AngularVelocity = 0
L7.AngularVelocity = 0
L8.AngularVelocity = 0
L9.AngularVelocity = 0
R1.AngularVelocity = 0
R2.AngularVelocity = 0
R3.AngularVelocity = 0
R4.AngularVelocity = 0
R5.AngularVelocity = 0
R6.AngularVelocity = 0
R7.AngularVelocity = 0
R8.AngularVelocity = 0
R9.AngularVelocity = 0
end
end)