Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I make a moving NPC vehicle?

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

3 comments

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?

0

on the x vector

0

oh that might work... I think I know what you mean...

1 answer

✓ Accepted answer

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

2 comments

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

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!!!

This discussion is preserved as it was. New answers, comments, and votes are closed.