About 50 results
Open links in new tab
  1. How to create a class, subclass and properties in Lua?

    Nov 17, 2014 · I'm having a hard time grokking classes in Lua. Fruitless googling led me to ideas about meta-tables, and implied that third-party libraries are necessary to simulate/write classes. Here's a …

  2. lua - How to move created objects in Roblox - Stack Overflow

    Jun 10, 2021 · I am making a game in roblox studio and I need to make the object I created (created manually) move towards the player. Here is the code: local pl = game.Players.LocalPlayer local …

  3. lua - Raycast error: Unable to cast value to Objects - Stack Overflow

    Jan 25, 2022 · My goal is just to learn more about raycasting, so I did some tests and at the end they all just said "Unable to cast value to Objects. I tried looking up how to fix this, but most of these er...

  4. list - Lua array of objects - Stack Overflow

    Nov 6, 2021 · I want to have a list of objects where I can add a new object to at top of the list, so when I want the object I get the newest object. I am very new to lua. How I have understod to do it is. --input

  5. How to check if two tables(objects) have the same value in Lua

    I wanna check if two tables have the same value in Lua, but didn't find the way. I use the operator ==, it seems just to check the same objects, but not the elements in the table. If I have two t...

  6. class - programming in lua, objects - Stack Overflow

    Dec 6, 2013 · Lua is not an object-oriented language, but it has all of the facilities for writing object-oriented code. However, it is done in a prototyping fashion a la JavaScript. Instead of explicitly …

  7. oop - Table of Objects in Lua - Stack Overflow

    Nov 18, 2021 · Table of Objects in Lua Asked 4 years, 1 month ago Modified 4 years, 1 month ago Viewed 2k times

  8. lua table - Using 'Object' functions in Lua? - Stack Overflow

    Sep 15, 2013 · You can also check out lua wiki's OOP section for more explanation and examples. To summary briefly your example, starting with how to use it. Note, I changed some of the names so it …

  9. love2d - Lua class objects? - Stack Overflow

    Aug 23, 2013 · I'm new to Lua and I'm wondering if there's a way to make many class objects to make different items in my case like in a OOP language like C# or Java. An example of what I'm saying is a …

  10. how to find out all properties of an object in lua?

    Jun 8, 2017 · I'm going to assume that when you are referring to "objects" you are meaning "lua tables with an __index metatable pointing to other tables". If that is not the case, this answer will not help …