generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: is it possible to make a script to group models?

Previous Thread :: Next Thread 
taylw006 is not online. 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 is not online. 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 is not online. airdude25
Joined: 03 Apr 2010
Total Posts: 1890
04 May 2012 09:18 AM
But. I am not the best Scripter.
Report Abuse
velibor is not online. 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 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
04 May 2012 09:22 AM
inefficient krap nub
Report Abuse
velibor is not online. 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 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
04 May 2012 09:28 AM
Make it as efficient as you can then.
Report Abuse
centraltrains is not online. centraltrains
Joined: 18 May 2010
Total Posts: 1331
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 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
04 May 2012 09:29 AM
Model is object
Report Abuse
taylw006 is not online. 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 is not online. breuning
Joined: 30 Oct 2008
Total Posts: 4268
04 May 2012 09:50 AM
"Instant.new" Hoooooly....
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
04 May 2012 09:51 AM
You aren't so good either.
Report Abuse
breuning is not online. 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 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
04 May 2012 09:53 AM
He's not the worst either
Report Abuse
breuning is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image