of     1   

Papadapulous
#80134958Monday, October 15, 2012 1:02 AM GMT

Any good softwares where I can run Lua on a mac? ¬ new day, new story ¶
miz656
#80135968Monday, October 15, 2012 1:14 AM GMT

Google it. I use a software called sciTE, but I'm not sure if it only works for windows or not.
Papadapulous
#80136097Monday, October 15, 2012 1:16 AM GMT

I googled it, LuaLearners website popped up and all it told me was how to install. Thanks for the suggestion.
miz656
#80136292Monday, October 15, 2012 1:18 AM GMT

...Lol? Why did you go to the LuaLearners site and not the Lua site for downloads ;3 ?
Papadapulous
#80136834Monday, October 15, 2012 1:25 AM GMT

Idk. :P I have the app for the iPod. But I want it on a computer. sciTE is only for windows Dx.
Papadapulous
#80137920Monday, October 15, 2012 1:37 AM GMT

Correct my first Lua script? Please. :3 It's supposed to be a calculator. while true do print("calculator loaded") print("Which operation would you like? Addition, or subtraction?") sign = io.read() if string.lower(sign) == "addition" then print("What would be your first number?") local first = io.read("*n") print("First number is "..first) print("What would be your second number?") local second = io.read("*n") print("Second number is "..second) print("adding") wait(1) print("Answer is "..first + second) elseif string.lower(sign) == "subtraction" then print("What would be your first number?") local first = io.read("*n") print("First number is "..first) print("What would be your second number?") local second = io.read("*n") print("Second number is "..second) print("adding") wait(1) print("Answer is "..first - second) end
Papadapulous
#80137972Monday, October 15, 2012 1:38 AM GMT

Oops. Forgot to end the if. while true do print("calculator loaded") print("Which operation would you like? Addition, or subtraction?") sign = io.read() if string.lower(sign) == "addition" then print("What would be your first number?") local first = io.read("*n") print("First number is "..first) print("What would be your second number?") local second = io.read("*n") print("Second number is "..second) print("adding") wait(1) print("Answer is "..first + second) elseif string.lower(sign) == "subtraction" then print("What would be your first number?") local first = io.read("*n") print("First number is "..first) print("What would be your second number?") local second = io.read("*n") print("Second number is "..second) print("subtracting") wait(1) print("Answer is "..first - second) end end
lombardo2
#80139563Monday, October 15, 2012 1:58 AM GMT

^ Wait is a roblox specific function, it's going to give error
Papadapulous
#80139649Monday, October 15, 2012 1:59 AM GMT

This is real Lua, not Rblx.Lua.
miz656
#80140062Monday, October 15, 2012 2:05 AM GMT

He's right. Blackboy, you can't use wait() in Lua. There is no function for that. It's easy to make up your own wait function though using the OS libraries.
Brofists
#80143725Monday, October 15, 2012 2:53 AM GMT

How about gmod?

    of     1