of     2   
chevron_rightchevron_rightchevron_right

SerGregor
#149824219Saturday, November 15, 2014 9:09 PM GMT

two loops to run at the same time I tried Spawn(function() end) coroutine.resume(coroutine.create(function() end)) ???
sbk28
#149824300Saturday, November 15, 2014 9:10 PM GMT

coroutine.wrap(function() code1 end)() coroutine.wrap(function() dode2 end)()
lordrambo
#149824369Saturday, November 15, 2014 9:11 PM GMT

coroutine.wrap(function() while true do print("x") wait(1) end)() while true do print("y") wait(1) end you don't have to put the second one in a new thread because it's not interfering with anything (at least not in this example) but you will want to if you have code beneath to two loops.
Vingam_Securis
#149824438Saturday, November 15, 2014 9:12 PM GMT

wouldn't for i = 1,2 do --whatever wait() end work?
SerGregor
#149824440Saturday, November 15, 2014 9:12 PM GMT

It worked now, thanks.
SerGregor
#149835085Saturday, November 15, 2014 11:43 PM GMT

It worked in play solo, not in play mode coroutine.wrap(function() for i = game.Workspace.CurrentCamera.FieldOfView,55, -1.5 do wait() game.Workspace.CurrentCamera.FieldOfView = i end end)() coroutine.wrap(function() for i = 0.1,1.5,0.2 do wait() script.Parent.GripPos = Vector3.new(i,0,0) end end)()
SerGregor
#149836387Sunday, November 16, 2014 12:02 AM GMT

bump
eLunate
#149836798Sunday, November 16, 2014 12:08 AM GMT

It's the camera that's the problem, right? Localscript.
SerGregor
#149836823Sunday, November 16, 2014 12:08 AM GMT

It's in a localscript :/
eLunate
#149836979Sunday, November 16, 2014 12:10 AM GMT

Damn. Well, I've not touched the camera yet so I'm out of ideas.
SerGregor
#149839770Sunday, November 16, 2014 12:52 AM GMT

bump
SerGregor
#149841106Sunday, November 16, 2014 1:14 AM GMT

bump
SerGregor
#149845622Sunday, November 16, 2014 2:19 AM GMT

bump
SerGregor
#149846986Sunday, November 16, 2014 2:40 AM GMT

bump
lordrambo
#149856115Sunday, November 16, 2014 5:08 AM GMT

Sorry if I came in a tad late :P You probably forgot to wait for the character at the top. Whenever something works in solo but not in online, it usually means you forgot to do that.
SerGregor
#149867355Sunday, November 16, 2014 11:24 AM GMT

bump
SerGregor
#149867411Sunday, November 16, 2014 11:26 AM GMT

and this is the part that doesen't happen at the same time. coroutine.wrap(function() for i = game.Workspace.CurrentCamera.FieldOfView,55, -1.5 do wait() game.Workspace.CurrentCamera.FieldOfView = i end end)() coroutine.wrap(function() for i = 0.1,1.5,0.2 do wait() script.Parent.GripPos = Vector3.new(i,0,0) end end)() The camera changes smoothly, then when it is finished the Grip of my tool begins changing grip. It is in a localscript and this fires when you have done the following: Equipping the tool Is in FPS mode Right click while in FPS mode If you've guessed it already, it's a sight and I got the idea from a place made of "Arke".
SerGregor
#149868093Sunday, November 16, 2014 12:08 PM GMT

bump
SerGregor
#149870432Sunday, November 16, 2014 1:52 PM GMT

bump
SerGregor
#149871647Sunday, November 16, 2014 2:29 PM GMT

bump, works in solo, not play.
SerGregor
#149875155Sunday, November 16, 2014 3:44 PM GMT

help qq
SerGregor
#149876734Sunday, November 16, 2014 4:13 PM GMT

hi
SerGregor
#149879831Sunday, November 16, 2014 5:01 PM GMT

bump
SerGregor
#149882683Sunday, November 16, 2014 5:40 PM GMT

bump
Notunknown99
#149882856Sunday, November 16, 2014 5:43 PM GMT

Just use spawn(function)

    of     2   
chevron_rightchevron_rightchevron_right