Lua Tutorial

  • ls7900
  • Born
  • Born
  • ls7900
  • Posts: 4

Post 3+ Months Ago



lua is used in many games such as: World of Warcraft, ROBLOX and many more.

lets start will functions

there are 3 types of functions:

Global
Normal
pcall

lets start with normal:

function Element(Argument)
--here you type in the code what the function does
print(Argument)
end --> ends a function

now:
Element("hi ozzu users!")

output:hi ozzu users!

we will get to the output later

now global

_G["Element"]=function(Argument)
print(Argument)
end --> ends the global function

in A DIFFERENT script:
element("hi")

output: hi


il add more to this later,
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • ls7900
  • Born
  • Born
  • ls7900
  • Posts: 4

Post 3+ Months Ago

a good webite to test you code is the lua website and go to the demo tester

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 90 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.