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 » Scripters
Home Search
 

how do you repeat until a multiple parts are in a magnitude

Previous Thread :: Next Thread 
tdawgtren is not online. tdawgtren
Joined: 03 Jun 2012
Total Posts: 6
24 Nov 2014 06:17 PM
without doing something ugly and innefficient like this:

local p={workspace.Wood:children''[1],workspace.Parts:children''[2]}
btw there are 15 parts

for _,o in pairs(p)do
for _,v in pairs(p)do
spawn(function()repeat wait''until (o.Position-v.Position).magnitude>=5 local f=Instance.new('Fire',v)f:clone''.Parent=o break end)
end
end
Report Abuse
Bladesmc is not online. Bladesmc
Joined: 18 Jan 2012
Total Posts: 193
24 Nov 2014 06:28 PM
Please go to the "Scripting Helpers" thread. That is the place for getting help. It works, too! I've used it many times in the creation of many projects.

Roses are red. Violets are red. Grass is red. Trees are red. I set your garden on fire...
Report Abuse
SenseiWarrior is not online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
24 Nov 2014 06:29 PM
SH is gone buddy
Report Abuse
tdawgtren is not online. tdawgtren
Joined: 03 Jun 2012
Total Posts: 6
24 Nov 2014 07:38 PM
@blade
getout
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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