cdw500
|
  |
| Joined: 11 Jun 2014 |
| Total Posts: 141 |
|
|
| 02 Sep 2014 10:01 PM |
| How would I split one part into 4 new parts using a script. i have no idea and no results show up online. i just need a push in the right direction. Any ideas? |
|
|
| Report Abuse |
|
|
|
| 02 Sep 2014 11:02 PM |
| just calculate the size you want and destroy the original part and Instance.new 4 new parts. |
|
|
| Report Abuse |
|
|
cdw500
|
  |
| Joined: 11 Jun 2014 |
| Total Posts: 141 |
|
|
| 02 Sep 2014 11:17 PM |
| Yes I already had that idea but how would I position them correctly took look like the window has cracked? |
|
|
| Report Abuse |
|
|
|
| 02 Sep 2014 11:38 PM |
| I suggest making differnt models of this window and replace the old one with a new one with a damaged look to it |
|
|
| Report Abuse |
|
|
cdw500
|
  |
| Joined: 11 Jun 2014 |
| Total Posts: 141 |
|
|
| 03 Sep 2014 04:36 PM |
| I have tried but the model will not be in the exact location I was using MoveTo but it is off some any solutions? |
|
|
| Report Abuse |
|
|
cdw500
|
  |
| Joined: 11 Jun 2014 |
| Total Posts: 141 |
|
| |
|
Stefan631
|
  |
| Joined: 23 Dec 2010 |
| Total Posts: 1350 |
|
|
| 03 Sep 2014 05:26 PM |
Um
part = game.Workspace.BrickThing:Clone(); -- Make this the original part.
part1 = Instance.new('Part', workspace); part1.Size = Vector3.new(part.Size.x/4,part.Size.y, part.z); part1.Anchored = true; part1.CFrame = part.CFrame - Vector3.new(part.Size.x/2 + part1.Size.x/2, 0, 0)
part2 = Instance.new('Part', workspace); part2.Size = Vector3.new(part.Size.x/4,part.Size.y, part.z); part2.Anchored = true; part2.CFrame = part.CFrame - Vector3.new(part.Size.x/2 + part1.Size.x, 0, 0)
part3 = Instance.new('Part', workspace); part3.Size = Vector3.new(part.Size.x/4,part.Size.y, part.z); part3.Anchored = true; part3.CFrame = part.CFrame - Vector3.new(part.Size.x/2 +(part1.Size.x * 2), 0)
part4 = Instance.new('Part', workspace); part4.Size = Vector3.new(part.Size.x/4,part.Size.y, part.z); part4.Anchored = true; part4.CFrame = part.CFrame - Vector3.new(part.Size.x * 2 - part1.Size.x/2, 0, 0)
part:Destroy(); game.Workspace.BrickThing:Destroy();
Lawl this was off the top of my head, sorry if it doesn't work right but test it out. |
|
|
| Report Abuse |
|
|