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: How do I run an lua file?

Previous Thread :: Next Thread 
jango464 is not online. jango464
Joined: 30 Jul 2009
Total Posts: 4913
04 Jan 2012 08:05 AM
I have this code;

function allwords()
local line = io.read()
local pos = 1
return function()
whlie line do
local s, e = string.find(line, "%w+", pos)
if s then
pos = e + 1
return string.sub(line, s, e)
else
line = io.read()
pos = 1
end
end
return nil
end
end
Report Abuse
trappingnoobs is not online. trappingnoobs
Joined: 05 Oct 2008
Total Posts: 19100
04 Jan 2012 08:09 AM
You can get a lua interpreter.

But seriously, though, it's completely and entirely useless using Lua until you can code in C++ to actually give Lua some stuff to do other than talk to command prompt and stuff.

C# and a few other languages also have decent implementations of Lua, such as LuaInterface.
Report Abuse
jango464 is not online. jango464
Joined: 30 Jul 2009
Total Posts: 4913
04 Jan 2012 08:09 AM
Bump

floodcheck
Report Abuse
trappingnoobs is not online. trappingnoobs
Joined: 05 Oct 2008
Total Posts: 19100
04 Jan 2012 08:10 AM
There's an online Lua interpreter, if I remember, on the official Lua site. You should be able to run that code there.
Report Abuse
jango464 is not online. jango464
Joined: 30 Jul 2009
Total Posts: 4913
04 Jan 2012 08:20 AM
Bump, I need to know how to run a program from notpad. Your not helping me that much by telling me something that doesn't even show me my final creation. It just says "Your program ran correctly!"
Report Abuse
MeBilly8440 is not online. MeBilly8440
Joined: 27 Jul 2009
Total Posts: 2783
04 Jan 2012 08:50 AM
Download a Lua command line, then open up your script with it.
Report Abuse
Techboy6601 is not online. Techboy6601
Joined: 29 Jun 2009
Total Posts: 4914
04 Jan 2012 03:08 PM
Link to Lua site please...
Report Abuse
mew903 is not online. mew903
Joined: 03 Aug 2008
Total Posts: 22071
04 Jan 2012 03:08 PM
http://lua.org/demo.html
Report Abuse
jango464 is not online. jango464
Joined: 30 Jul 2009
Total Posts: 4913
04 Jan 2012 04:07 PM
Why so many view O_O
Report Abuse
aboy5643a is not online. aboy5643a
Joined: 20 Nov 2010
Total Posts: 2785
04 Jan 2012 04:08 PM
We're popular :)
Report Abuse
LocalChum is not online. LocalChum
Joined: 04 Mar 2011
Total Posts: 6906
04 Jan 2012 04:10 PM
@aboy

Yeah, we're certainly popular. Either that or we get a lot of F5's. :3
Report Abuse
booing is not online. booing
Joined: 04 May 2009
Total Posts: 6594
04 Jan 2012 04:19 PM
@OP:
Your question has been answered over 3 times.
Install lua.
lua luafile.lua
Report Abuse
jango464 is not online. jango464
Joined: 30 Jul 2009
Total Posts: 4913
08 Jan 2012 09:02 AM
Bump
Report Abuse
TheCapacitor is not online. TheCapacitor
Joined: 19 Jan 2011
Total Posts: 7045
08 Jan 2012 09:11 AM
dofile("C:/SomeFile.lua")
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