taylw006
|
  |
| Joined: 01 Sep 2008 |
| Total Posts: 692 |
|
|
| 04 May 2012 08:49 AM |
im trying to make a regen for my burn down the skyscraper game. the problem is the fire tool i made only works when the bricks are ungrouped.
i need to group the parts before it regens. can anyone give me the script or tell me whether it is possible |
|
|
| Report Abuse |
|
|
airdude25
|
  |
| Joined: 03 Apr 2010 |
| Total Posts: 1890 |
|
|
| 04 May 2012 09:18 AM |
| You Could insert a Regen Script in each brick. Or you could make a script that groups one second the n regens the next |
|
|
| Report Abuse |
|
|
airdude25
|
  |
| Joined: 03 Apr 2010 |
| Total Posts: 1890 |
|
|
| 04 May 2012 09:18 AM |
| But. I am not the best Scripter. |
|
|
| Report Abuse |
|
|
velibor
|
  |
| Joined: 24 Nov 2009 |
| Total Posts: 1003 |
|
|
| 04 May 2012 09:22 AM |
My solution for this problem
Put the Bricks inside a Model called : Model And put it inside the Lighting Folder
Then put this script inside the Workspace folder TimeForRegen = 5000 -- In Seconds
function CreateModel() for _,v in pairs(Game.Lighting.Model:GetChildren()) do v:clone().Parent = Game.Workspace end Timer() end
function RemoveParts() for i,v in pairs(Game.Workspace:GetChildren()) do if v.ClassName == "Part" then if v.Name == "Base" then print("Wont !") else v:Destroy() end end end CreateModel() end
function Timer() for i = 1,TimeForRegen do r = TimeForRegen - i if r == 0 then RemoveParts() end end end
CreateModel()
Velibor.
|
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
| |
|
velibor
|
  |
| Joined: 24 Nov 2009 |
| Total Posts: 1003 |
|
|
| 04 May 2012 09:26 AM |
Haha. Su8 I know.
Wanna to have it effecient ? Then I will do it. I only doubt that the OP will still get it then..
Velibor
|
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 04 May 2012 09:28 AM |
| Make it as efficient as you can then. |
|
|
| Report Abuse |
|
|
|
| 04 May 2012 09:28 AM |
| I would think so via Instant.New but then again a model is a folder and not an object, you could clone an empty model I supose! |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
| |
|
taylw006
|
  |
| Joined: 01 Sep 2008 |
| Total Posts: 692 |
|
|
| 04 May 2012 09:46 AM |
| thank you very much for all of your help so far |
|
|
| Report Abuse |
|
|
breuning
|
  |
| Joined: 30 Oct 2008 |
| Total Posts: 4268 |
|
|
| 04 May 2012 09:50 AM |
| "Instant.new" Hoooooly.... |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 04 May 2012 09:51 AM |
| You aren't so good either. |
|
|
| Report Abuse |
|
|
breuning
|
  |
| Joined: 30 Oct 2008 |
| Total Posts: 4268 |
|
|
| 04 May 2012 09:52 AM |
At least I know that its Instance.new(), I know a bit of string manipulation , I can handle coroutines and already made some raycast guns. I'm not the best, neither the worst. |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
| |
|
breuning
|
  |
| Joined: 30 Oct 2008 |
| Total Posts: 4268 |
|
|
| 04 May 2012 09:56 AM |
| Nope. He should atleast know Instance.new(). :C |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 04 May 2012 09:57 AM |
| You can't judge knowledge just by knowing the names of le library stuff |
|
|
| Report Abuse |
|
|