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: Seeing a mistake in a Local

Previous Thread :: Next Thread 
Raphael7 is not online. Raphael7
Joined: 03 Dec 2008
Total Posts: 2479
09 Nov 2011 05:58 PM
How can you see your mistake using a local script? My script wouldn't work in scripts so yeah... Can anyone tell me how codes wouldn't work on scripts, and work in Local only
Report Abuse
Jellyfish403 is not online. Jellyfish403
Joined: 12 May 2010
Total Posts: 951
09 Nov 2011 06:05 PM
What exactly are you trying to do that requires local scripting.
Report Abuse
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 17092
09 Nov 2011 06:06 PM
Tools>Test>Play Solo

-[::ƧѡÎḾḠΰῩ::]-
-[::Maker of stuff and Helper of Scripting::]-
Report Abuse
Jellyfish403 is not online. Jellyfish403
Joined: 12 May 2010
Total Posts: 951
09 Nov 2011 06:06 PM
If your asking in what places local scripts run:
In a player's Backpack
In a player's character model
In a player's PlayerGui
Report Abuse
Meriadoc is not online. Meriadoc
Joined: 24 Sep 2008
Total Posts: 710
09 Nov 2011 06:07 PM
Only way I know of is to put the code in a normal script. But that probably isn't much help to you. Sorry. =/
Report Abuse
Jellyfish403 is not online. Jellyfish403
Joined: 12 May 2010
Total Posts: 951
09 Nov 2011 06:07 PM
You can also do what swimguy said.
Report Abuse
Raphael7 is not online. Raphael7
Joined: 03 Dec 2008
Total Posts: 2479
09 Nov 2011 06:07 PM
Jelly, I'm trying to make a sword, and it wouldn't work unless it's in local, so I click a few times, then I couldn't see my mistakes too, so whenever I unequip, and equip it back again, it won't let me click again.
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
09 Nov 2011 06:08 PM
LocalScripts don't show errors on the output, seeing as they're client-sided, not server-sides as the output is.

I think LocalScript errors are shown on logs on your computer or something, but as for the file path, I do not know.
Report Abuse
Raphael7 is not online. Raphael7
Joined: 03 Dec 2008
Total Posts: 2479
09 Nov 2011 06:08 PM
Jelly, thanks for telling where it works, that'll help
Report Abuse
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 17092
09 Nov 2011 06:08 PM
COUGH

TOOL>TEST>PLAY SOLO

-[::ƧѡÎḾḠΰῩ::]-
-[::Maker of stuff and Helper of Scripting::]-
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
09 Nov 2011 06:09 PM
swim, as I posted, that is wrong.
Report Abuse
Raphael7 is not online. Raphael7
Joined: 03 Dec 2008
Total Posts: 2479
09 Nov 2011 06:10 PM
Few questions,

I use Server > Player, should I use test solo?

How do I open up 'Logs'

If local doesn't work in test, will it only work in server?
Report Abuse
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 17092
09 Nov 2011 06:10 PM
Play Solo treats EVERYTHING like it's client sided. That's how I test Tools/Hopperbins/Guis and it works just fine. You just have to make sure that you have a wait(2) at the top or they won't run.

-[::ƧѡÎḾḠΰῩ::]-
-[::Maker of stuff and Helper of Scripting::]-
Report Abuse
Raphael7 is not online. Raphael7
Joined: 03 Dec 2008
Total Posts: 2479
09 Nov 2011 06:13 PM
Thanks!
Report Abuse
Raphael7 is not online. Raphael7
Joined: 03 Dec 2008
Total Posts: 2479
09 Nov 2011 06:13 PM
Questions,

On every functions? Like put a wait?
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
09 Nov 2011 06:15 PM
@swim - oh.
Report Abuse
DXPower is not online. DXPower
Joined: 21 Oct 2008
Total Posts: 2866
09 Nov 2011 06:25 PM
You don't have to put a wait on all functions... Some things just require waits...
Report Abuse
Raphael7 is not online. Raphael7
Joined: 03 Dec 2008
Total Posts: 2479
09 Nov 2011 06:37 PM
DX, like what?
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
09 Nov 2011 06:43 PM
Ignore DX.

There should be a wait(3) or something at the top of every LocalScript, due to server/client issues. They often break for that reason.
Report Abuse
Raphael7 is not online. Raphael7
Joined: 03 Dec 2008
Total Posts: 2479
09 Nov 2011 06:55 PM
Oh!
Report Abuse
Jellyfish403 is not online. Jellyfish403
Joined: 12 May 2010
Total Posts: 951
11 Nov 2011 06:54 PM
If the Play Solo mode in Roblox Studio runs on a client, you couldn't tell if your script was working as a local script, you would have to start a server.
Report Abuse
Jellyfish403 is not online. Jellyfish403
Joined: 12 May 2010
Total Posts: 951
11 Nov 2011 06:56 PM
And I may have a method that loads a local script into a tool once a player joins so if you need to know that script let me know. [Jellyfish403 - Intermediate Roblox Lua Scripter]
Report Abuse
MrgamesNwatch is not online. MrgamesNwatch
Joined: 02 Feb 2009
Total Posts: 7729
11 Nov 2011 07:11 PM
you could creates hints throughout your local script to display what you need if you wanted to test it in server.
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