I’m currently working on a basic tank system and I am at the movement part. My current achievement is making the tank model move using BodyVelocity and rotating it with BodyAngularVelocity, all handled by the W, A, and D keys.
My current issue is that it would only go forward in one specific direction but I want it to go to the tank model’s orientation. I am newer to scripting and I don’t know if that would even be possible to do while still using BodyVelocity.
I have 2 scripts, one local script to handle inputs and the other one being a server script executing the movement. Both are pretty long as a remote event is used for each key related to the driving system. I know that’s really not the way it is done but I’m making this to improve my coding abilities.
Thank you for reading.
1 Like
BodyVelocity.Velocity = TankModel:GetPivot().LookVector * Speed
That should do it. If it doesn’t, reply with what happens.
2 Likes