pilotboy1
|
  |
| Joined: 25 May 2009 |
| Total Posts: 1908 |
|
|
| 10 Aug 2013 11:32 AM |
| I made a van... but I need a regen button, how do I add one? |
|
|
| Report Abuse |
|
|
pilotboy1
|
  |
| Joined: 25 May 2009 |
| Total Posts: 1908 |
|
| |
|
|
| 10 Aug 2013 11:43 AM |
| Most regens you just group with the vehicle. Then change the name in the script to the name of your vehicle model. |
|
|
| Report Abuse |
|
|
pilotboy1
|
  |
| Joined: 25 May 2009 |
| Total Posts: 1908 |
|
| |
|
|
| 10 Aug 2013 11:50 AM |
http://www.roblox.com/UFO-item?id=121509680
I use this regen pad with all my vehicles. I dont know who wrote the script for the regenpad but it wasn't me.
The ufo is powered by tummey2 scripting, built by me.
The regen pad will regen as soon as the vehicle is far enough away. It would be wise to put a timed removal script into the vehicle to prevent spamming vehicles. |
|
|
| Report Abuse |
|
|
pilotboy1
|
  |
| Joined: 25 May 2009 |
| Total Posts: 1908 |
|
|
| 10 Aug 2013 11:55 AM |
@Scacman1967
Firstly, thanks again.
I'm quite a basic scripter, do you know the script for the timed removal, or where I can find it? |
|
|
| Report Abuse |
|
|
tummey2
|
  |
| Joined: 04 Feb 2009 |
| Total Posts: 1802 |
|
|
| 10 Aug 2013 12:16 PM |
You can use mine if your vehicle has a "VehicleSeat" in it.
http://www.roblox.com/Regen-item?id=120146398 |
|
|
| Report Abuse |
|
|
Brycemlns
|
  |
| Joined: 28 Jan 2008 |
| Total Posts: 216 |
|
|
| 10 Aug 2013 03:29 PM |
| Add wait(3) (where 3 is the seconds) to your script for timed removal. |
|
|
| Report Abuse |
|
|
|
| 11 Aug 2013 12:40 AM |
Put this on a script in the vehicle model. Not in the grouped regen but inside the actual vehicle model that the regen is grouped with.
wait(600) script.Parent:Remove() |
|
|
| Report Abuse |
|
|
tummey2
|
  |
| Joined: 04 Feb 2009 |
| Total Posts: 1802 |
|
|
| 11 Aug 2013 10:13 AM |
| The problem with what you guys are saying is that regardless of if the player is driving or not once the wait has completed the car will remove. If you want to do it properly you have to monitor if the vehicle's being stimulated and then if it's not been touched for awhile, remove it. |
|
|
| Report Abuse |
|
|
|
| 11 Aug 2013 12:52 PM |
I'm a basic scripter too. The scripting help fourm is for these questions though. |
|
|
| Report Abuse |
|
|