24stop
|
  |
| Joined: 30 Jul 2015 |
| Total Posts: 107 |
|
|
| 22 Aug 2015 07:16 PM |
| so i have this car, that when you drive it, it won't respawn back where you get it from. I tried a regen button but that will regenerate the car and the person who's driving it will be forced out of the car. I want a button so that when you step on it it will clone the car, so that if somebody is driving one already, it won't effect them and somebody else can get their car. |
|
|
| Report Abuse |
|
|
|
| 22 Aug 2015 07:19 PM |
put this script in the cars seat:
script.Parent.TouchEnded:connect(function(h) if h.Parent:FindFirstChild("Humanoid") then h.Parent:Destroy() end end)
Green tea is green tea if its just green tea |
|
|
| Report Abuse |
|
|
Valtameri
|
  |
| Joined: 09 Mar 2014 |
| Total Posts: 525 |
|
|
| 22 Aug 2015 07:20 PM |
Continue using the same regen button. BUT, add a script to the car's seat so that when someone sits in it, it's parent becomes the workspace.
[ George Orwell taught me math! 2 + 2 = 5 ] |
|
|
| Report Abuse |
|
|
24stop
|
  |
| Joined: 30 Jul 2015 |
| Total Posts: 107 |
|
|
| 22 Aug 2015 07:25 PM |
@valtameri
what would the script be? can you give it to me?
im a newb scripter |
|
|
| Report Abuse |
|
|
Valtameri
|
  |
| Joined: 09 Mar 2014 |
| Total Posts: 525 |
|
|
| 22 Aug 2015 07:30 PM |
In a script in the seat:
script.Parent.Touched:connect(function(hit) if hit.Parent:findFirstChild("Humanoid") then script.Parent.Parent.Parent = game.Workspace end end)
[ George Orwell taught me math! 2 + 2 = 5 ] |
|
|
| Report Abuse |
|
|
24stop
|
  |
| Joined: 30 Jul 2015 |
| Total Posts: 107 |
|
|
| 22 Aug 2015 08:04 PM |
bump
@above haven't tested yet, will in a sec |
|
|
| Report Abuse |
|
|