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
 

Re: Does the .Error event work on local scripts

Previous Thread :: Next Thread 
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
23 Jul 2014 09:36 AM
please
Report Abuse
filiptibell is not online. filiptibell
Joined: 10 Mar 2013
Total Posts: 2362
23 Jul 2014 09:38 AM
A 2 second wiki search tells me no.

~The herp lerped a derp~
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
23 Jul 2014 09:43 AM
oh
so theres no way to see if a local script broke?
Report Abuse
truman89 is not online. truman89
Joined: 18 May 2008
Total Posts: 531
23 Jul 2014 09:48 AM
Use print() and else/else if statements. Works for me.
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
23 Jul 2014 09:51 AM
@tru, what?
Report Abuse
truman89 is not online. truman89
Joined: 18 May 2008
Total Posts: 531
23 Jul 2014 09:53 AM
I'll explain it. Let's say you have this.

if statement == true then
--do your stuff here
print("Worked")
else
print("didn't work")
end
Report Abuse
truman89 is not online. truman89
Joined: 18 May 2008
Total Posts: 531
23 Jul 2014 09:54 AM
Posted too soon, sorry. Well, if you can understand that, you get the general idea of it. If not, I can explain more.
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
23 Jul 2014 10:00 AM
my script is over 1000 lines long

Report Abuse
truman89 is not online. truman89
Joined: 18 May 2008
Total Posts: 531
23 Jul 2014 10:15 AM
Oh, well then, it MIGHT not work... Try anyway, though.
Report Abuse
Stefan631 is not online. Stefan631
Joined: 23 Dec 2010
Total Posts: 1350
23 Jul 2014 10:16 AM
pcalls
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
23 Jul 2014 10:16 AM
You gave me an idea though.
I think it only breaks right at the start when loading stuff.
So what I'll do it put a value inside and then make it true at a certain point..

hmm yes
Report Abuse
Geodesic is not online. Geodesic
Joined: 02 Jun 2013
Total Posts: 998
23 Jul 2014 10:17 AM
use logservice.messageout..?
Report Abuse
truman89 is not online. truman89
Joined: 18 May 2008
Total Posts: 531
23 Jul 2014 10:18 AM
@Stefan omg i'm a failure i forgot about pcalls. worst scripter NA GG.

But, Stefan has a point. pcalls might be able to find your error.
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
23 Jul 2014 10:18 AM
http://wiki.roblox.com/index.php?title=RBX.lua.LogService_(Service)

this?
how would i use it?
Report Abuse
Stefan631 is not online. Stefan631
Joined: 23 Dec 2010
Total Posts: 1350
23 Jul 2014 11:01 AM
Lawl. #pcalls
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
23 Jul 2014 11:02 AM
nah they wont work
Report Abuse
Stefan631 is not online. Stefan631
Joined: 23 Dec 2010
Total Posts: 1350
23 Jul 2014 11:05 AM
Make a TextLabel gui for the MessageOut.

and then do

game:GetService'LogService'.MessageOut:connect(function(hi)
TextLabel.Text = hi;
end);
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
23 Jul 2014 11:09 AM
What I want to do is if a certain local script errors then it gets disabled and re-enabled.
Possible?
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