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
 

[ Content Deleted ]

Previous Thread :: Next Thread 
zack785 is not online. zack785
Joined: 06 Feb 2009
Total Posts: 419
12 Jan 2013 02:33 AM
I want to clone fire into stuff with the same name 'Part' but I don't know how? I was wondering if I make a table of the parts and if the Name is Part than clone a fire into it?
Report Abuse
IamAwesome777 is not online. IamAwesome777
Joined: 18 Jul 2011
Total Posts: 2640
12 Jan 2013 02:35 AM
local parts = {} -- Leave empty
for i,v in next, workspace:GetChildren() do
if v.Name == "Part" then
table.insert(parts, v:Clone())
end
end
Report Abuse
zack785 is not online. zack785
Joined: 06 Feb 2009
Total Posts: 419
12 Jan 2013 02:38 AM
What about the fire? Do I do:

local fire = script.Fire
table.insert(fire, v:Clone())
Report Abuse
zack785 is not online. zack785
Joined: 06 Feb 2009
Total Posts: 419
12 Jan 2013 02:42 AM
Wait no that would be wrong I'm pretty sure :P but what would I do?
Report Abuse
IamAwesome777 is not online. IamAwesome777
Joined: 18 Jul 2011
Total Posts: 2640
12 Jan 2013 02:44 AM
Do you only want to clone fire?


local parts = {} -- Leave empty
for i,v in next, workspace:GetChildren() do
if v.Name == "Part" and v:FindFirstChild("Fire") then
table.insert(parts, v.Fire:Clone())
end
end



Report Abuse
zack785 is not online. zack785
Joined: 06 Feb 2009
Total Posts: 419
12 Jan 2013 02:45 AM
Yes I want to clone fire into the bricks, also... would it be possible to make it look inside models for Parts? There are about 20 different sections in this and it would save a ton of time.
Report Abuse
zack785 is not online. zack785
Joined: 06 Feb 2009
Total Posts: 419
12 Jan 2013 02:46 AM
Also the fire is only inside the script, it's not inside all of the bricks
Report Abuse
zack785 is not online. zack785
Joined: 06 Feb 2009
Total Posts: 419
12 Jan 2013 02:51 AM
Would this work? also it doesn't solve the going through models problem still :/


local parts = {} -- Leave empty
for i,v in next, script.Parent:GetChildren() do
if v.Name == "Part" and script.Fire then
table.insert(parts, script.Fire:Clone())
end
end
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
12 Jan 2013 02:54 AM
[ Content Deleted ]
Report Abuse
zack785 is not online. zack785
Joined: 06 Feb 2009
Total Posts: 419
12 Jan 2013 03:01 AM
If I wanted to make it clone fire every time the Humanoid would change would this work?

Function Damaged()
script
script.Parent.Humanoid.Health.Changed:connect(Damaged)
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
12 Jan 2013 03:05 AM
[ Content Deleted ]
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
12 Jan 2013 03:06 AM
[ Content Deleted ]
Report Abuse
zack785 is not online. zack785
Joined: 06 Feb 2009
Total Posts: 419
12 Jan 2013 03:07 AM
True so I would probably want to make the script disabled for like .5 seconds or something, maybe more..
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
12 Jan 2013 03:10 AM
[ Content Deleted ]
Report Abuse
zack785 is not online. zack785
Joined: 06 Feb 2009
Total Posts: 419
12 Jan 2013 03:13 AM
Can you do a line like "if 20 > 50 - 30+ then" like 30 or more?
Report Abuse
zack785 is not online. zack785
Joined: 06 Feb 2009
Total Posts: 419
12 Jan 2013 03:14 AM
Yea but I want the fire to increase as it takes more damage... also when it reaches 0 for all of the parts to explode (would that be :Destroy() right?)
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
12 Jan 2013 03:27 AM
[ Content Deleted ]
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
12 Jan 2013 03:27 AM
[ Content Deleted ]
Report Abuse
zack785 is not online. zack785
Joined: 06 Feb 2009
Total Posts: 419
12 Jan 2013 10:59 AM
No I mean like 'if 100 > 120 - 20+ then'
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