Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make a moving NPC vehicle?

Asked by 3 years ago

Hello everyone, this is CatNinja4893 from Dark_Kat Studios again and I came across a problem while developing. I want to know how to make an NPC's vehicle moving. Not like a:

game.Workspace.MovingCar.Position = 1,2,3

or however you do that... But I want a script where it looks like a car is driving. I was thinking:

local MovingCar = game.Workspace.MovingCar

MovingCar.Position = 1,2,3 MovingCar.Position = 1,2.1,3 MovingCar.Position = 1,2.2,3

Well... you get it. But that would be very jerky all over the screen and it isn't exactly efficient. So if anyone knows how to do this, please answer my question. Thank you guys so much!

-CatNinja4893

0
i know this idea sounds bizzare but it may work, try putting a body gyro in the wheel and try doing 3 to turn right and then do -3 to turn left maybe? kepiblop 124 — 3y
0
on the x vector kepiblop 124 — 3y
0
oh that might work... I think I know what you mean... CatNinja4893 -3 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

Make its wheels spin! Move it the same way a player driving it would, only this time you automate the control with some AI.

0
Well, I had thought of that, but that would create lag and more. Also, I have no experience with making AI and I have no idea how to do that. Lol CatNinja4893 -3 — 3y
0
I think I actually figured it out. I could make myself drive it and record a video. I just need a video for the menu screen, so i could drive it and then I could make my body invisible!!! CatNinja4893 -3 — 3y
Ad

Answer this question