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

Disable vehical seat and use keydown varible to drive car?

You know in jailbreak how it has a surface gui pop up when your about to enter a car press E to enter car? I would like to know if its a easy process to do, before I do research I seen it on rowiki but it was for Xbox controller. Do you know on wiki were it shows you how to do it?

2 answers

✓ Accepted answer

Here is a simple script outline

The Button E is pressed
	if the player is near a car seat
		sit the player in the car and let them drive

Well from what I can assume it's not easy, however not as hard as saving your progress. (From what I know. It could be more or less harder to create.)

I don't where to get the code from however...

As I was saying, all you need to do is:

  1. When player gets close to car create gui
  2. If they press E then tp them to seat
  3. Enable them to drive the car.

So it will take some work, but if you know how to do it or think that you could learn how to do it then it shouldn't be insanely hard to create.

Sorry for insufficient info.

1 comment

0

Hey you just gave me an idea. What if i make like a trigger system anf attach it to the car, then when the player steps on it a gui pops up saying enter car when you press enter it teleports you to the seat which is a teleport brick. Thanks for helpinh me, that reall,gave me a good idea.

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