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
 

Loop timing

Previous Thread :: Next Thread 
jinglebombs is not online. jinglebombs
Joined: 14 Sep 2008
Total Posts: 190
06 Feb 2014 08:00 PM
I have a loop that calls a function, but the loop and the functions times add together, is there any way to disregard the function time during the loop?
Report Abuse
XtremeTemper is not online. XtremeTemper
Joined: 02 Mar 2012
Total Posts: 1774
06 Feb 2014 08:01 PM
script please?
Report Abuse
DragonODeath is not online. DragonODeath
Joined: 02 May 2011
Total Posts: 1252
06 Feb 2014 08:01 PM
Use a coroutine. Look it up on the wiki.
Report Abuse
jinglebombs is not online. jinglebombs
Joined: 14 Sep 2008
Total Posts: 190
06 Feb 2014 08:02 PM
Lava = script.Parent.Lava:getChildren()

function dropLava()
i = math.random(1, #Lava)
c = Lava[i]:clone()
c.Parent = script.Parent.Clones
c.Position = Lava[i].Position - Vector3.new(0,1.2,0)
c.Anchored = false
wait(1)
c:destroy()
end

while true do
dropLava()
wait(.2)
end
Report Abuse
andytheepic is not online. andytheepic
Joined: 20 May 2011
Total Posts: 83
06 Feb 2014 08:05 PM
There is a lot easier way to do what your trying to do, but I don't want to spend the time since I have already helped a ton of people. But there is an easier way to do it is helping already.
Report Abuse
lolb3 is not online. lolb3
Joined: 16 Jan 2010
Total Posts: 2268
06 Feb 2014 08:17 PM
function dropLava()
i = math.random(1, #Lava)
c = Lava[i]:clone()
c.Parent = script.Parent.Clones
c.Position = Lava[i].Position - Vector3.new(0,1.2,0)
c.Anchored = false
game.Debris:AddItem(c, 3)
end

while true do
dropLava()
wait(.2)
end
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