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
 

Re: If a part of coroutine function break?

Previous Thread :: Next Thread 
13Jayson is not online. 13Jayson
Joined: 05 Jun 2012
Total Posts: 1682
26 Jan 2016 10:52 PM
Like by some error, will it stop the whole script or just the coroutine function?



Meeooow!!!!!!13!!!
Report Abuse
13Jayson is not online. 13Jayson
Joined: 05 Jun 2012
Total Posts: 1682
26 Jan 2016 10:57 PM
bump

if u know about coroutine, u might know what to answer, so plz help!!13!? :>



Meeooow!!!!!!13!!!
Report Abuse
HuskiesPancake is online. HuskiesPancake
Joined: 12 Apr 2013
Total Posts: 2623
26 Jan 2016 10:58 PM
de hol scrapt


#code cntkill me < cool
Report Abuse
13Jayson is not online. 13Jayson
Joined: 05 Jun 2012
Total Posts: 1682
26 Jan 2016 11:04 PM
o god... why the whole though? o.o

lets hope i dont have an error, bcuz the thing I use, I use it for like so many things, and it would break my whole game completly, but im positif that i have no error yet, hopefully it keep like that



Meeooow!!!!!!13!!!
Report Abuse
13Jayson is not online. 13Jayson
Joined: 05 Jun 2012
Total Posts: 1682
26 Jan 2016 11:07 PM
wait so, if i use coroutine like this

repeat wait() until Player and From and game:GetService("BadgeService"):UserHasBadge(Player.userId, BadgeId)


and the player somehow leave or reset, will it just continue the wait()? im a bit worried about that lol



Meeooow!!!!!!13!!!
Report Abuse
13Jayson is not online. 13Jayson
Joined: 05 Jun 2012
Total Posts: 1682
26 Jan 2016 11:09 PM
bcuz im using a coroutine inside a RemoteEvent, but i dont use pcall on it... and idk how I'd use pcall for



Meeooow!!!!!!13!!!
Report Abuse
13Jayson is not online. 13Jayson
Joined: 05 Jun 2012
Total Posts: 1682
26 Jan 2016 11:12 PM
repeat wait() until (Player and From and game:GetService("BadgeService"):UserHasBadge(Player.userId, BadgeId)) or not Player or not From
if Player and From and game:GetService("BadgeService"):UserHasBadge(Player.userId, BadgeId) then
From.Name = "Completed"
end

^ this should fix my problem CX



Meeooow!!!!!!13!!!
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
26 Jan 2016 11:16 PM
No, coroutine errors will not affect the rest of your script.


Report Abuse
13Jayson is not online. 13Jayson
Joined: 05 Jun 2012
Total Posts: 1682
26 Jan 2016 11:41 PM
eh i hope ur right, it would be scary to me



Meeooow!!!!!!13!!!
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
26 Jan 2016 11:45 PM
Run this code to test:

print(1)
coroutine.resume(coroutine.create(function() error("coroutine error") end))
print(2)


Report Abuse
13Jayson is not online. 13Jayson
Joined: 05 Jun 2012
Total Posts: 1682
26 Jan 2016 11:52 PM
i tested multiple things, and YES it only break coroutine ;D

i feel safer lol



Meeooow!!!!!!13!!!
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