Club Penguin Planet
Would you like to react to this message? Create an account in a few clicks or log in to continue.



 
HomeLatest imagesRegisterLog in

 

 Clean code in Lua

Go down 
2 posters
AuthorMessage
Emess
Adept
Adept
avatar


Posts : 1559
Registration date : 2009-03-02

Clean code in Lua Empty
PostSubject: Clean code in Lua   Clean code in Lua EmptyNovember 26th 2010, 2:40 pm

Code:
function puts(parent, name, text, time)
   msg = Instance.new("Message", parent)
   msg.Name = name
   msg.Text = text
   wait(time)
   msg:remove()
end

puts(workspace, "msg", "Hello!", 10)

It's clean. It's amazing and powerful.

But seriously, this shows that you don't need lots of code in order to create big things.
Back to top Go down
Hellopayton
Retired Staff
Retired Staff
Hellopayton


Posts : 5616
Registration date : 2008-01-28

Clean code in Lua Empty
PostSubject: Re: Clean code in Lua   Clean code in Lua EmptyNovember 29th 2010, 11:36 pm

MrMess wrote:
Code:
function puts(parent, name, text, time)
   msg = Instance.new("Message", parent)
   msg.Name = name
   msg.Text = text
   wait(time)
   msg:remove()
end

puts(workspace, "msg", "Hello!", 10)

It's clean. It's amazing and powerful.

But seriously, this shows that you don't need lots of code in order to create big things.

I hope you're kidding. That's a bunch of garbage.
Back to top Go down
 
Clean code in Lua
Back to top 
Page 1 of 1
 Similar topics
-
» New Newspaper and other Updates
» House clean up
» Help with GML code
» Forum Clean Up.
» Clean Up Australia Day ('n' more)

Permissions in this forum:You cannot reply to topics in this forum
Club Penguin Planet :: Other Discussions :: Programming & Technology-
Jump to: