DevKonner
|
  |
| Joined: 04 Feb 2012 |
| Total Posts: 519 |
|
|
| 17 Jan 2016 01:54 PM |
When I press this button I have it to where it clones a vehicle from lighting into workspace. But when it clones it breaks and the car unanchors and goes everywhere. When I test the car without click the button its all normal. Am I able to make something to where it loads parts at a time without it going everywhere?
script.Parent.MouseButton1Down:connect(function() local car = game.Lighting.SUV:clone() car.Parent = game.Workspace script.Parent.Parent.Parent.Parent.Parent:Destroy() end)
|
|
|
| Report Abuse |
|
|
Crimsonal
|
  |
| Joined: 23 Apr 2011 |
| Total Posts: 1795 |
|
|
| 17 Jan 2016 01:56 PM |
script.Parent.MouseButton1Down:connect(function() local car = game.Lighting.SUV:clone() car:MakeJoints() car.Parent = game.Workspace car:MakeJoints() script.Parent.Parent.Parent.Parent.Parent:Destroy() end)
|
|
|
| Report Abuse |
|
|
|
| 17 Jan 2016 01:56 PM |
script.Parent.MouseButton1Down:connect(function() local car = game.Lighting.SUV:clone() car.Parent = game.Workspace car:MakeJoints() script.Parent.Parent.Parent.Parent.Parent.Parent:Destroy() end) |
|
|
| Report Abuse |
|
|
DevKonner
|
  |
| Joined: 04 Feb 2012 |
| Total Posts: 519 |
|
|
| 17 Jan 2016 02:00 PM |
| @Crimsonal that works but one of the wheels in the car are falling off. Do you think it would be the scripts problem or the vehicle? Because when I use the vehicle normally a wheel doesn't fall off. |
|
|
| Report Abuse |
|
|
Crimsonal
|
  |
| Joined: 23 Apr 2011 |
| Total Posts: 1795 |
|
|
| 17 Jan 2016 02:01 PM |
idk, but that's the script I use when I'm inserting NPCS
|
|
|
| Report Abuse |
|
|
DevKonner
|
  |
| Joined: 04 Feb 2012 |
| Total Posts: 519 |
|
|
| 17 Jan 2016 02:03 PM |
| Alright, thanks for your help! |
|
|
| Report Abuse |
|
|