Ask coding questions

← Back to all posts
learn Lua
DYLANMATTHEWMAT (2)

How do you find the filepath of the things in your repl?

ALSO
How can I replace the "dofile" and "loadfile" statements with "require."

Answered by xolyon (337) [earned 5 cycles]
View Answer
Commentshotnewtop
xolyon (337)

you can either do
require "name"
or

local "name" = require "name" (put in brackets if doesn't work)
DYLANMATTHEWMAT (2)

nvm i found out you don't need the file [email protected]

TheForArkLD (712)

Cool!
(Can you do own made language?)

DYLANMATTHEWMAT (2)

huh? @TheForArkLD since you're there, what can you do with lua?
also what language did you make?

DYLANMATTHEWMAT (2)

@TheForArkLD you are the maker of NodeJS?