you know the replacement for loadstring it’s VLua but theres one issue if you want to use VLua you need to inport it into your game theres no way to call for example require(id).excute(‘print(“hello”)’) you need to require the module inside of your game theres no way to add it without going into studio and putting it in it would help if someone has a VLua require script that i can use
how do you want to use a module without using it
if you want this VLua module, just put it into your game? what exactly is your reason for needing a “require script”? This concept, “require script,” is usually done by skids AFAIK, which makes this question pretty suspicious.
i just wanted to know if theres a way to do
Why? Why do you need this, when you should just be able to import the module into your game?
This is just suspicious, by the way. Why can’t you go into Studio?
i can but i just wanna know if it’s even possible if not i guess i will just give up
In what way would you even run this, though?
Also, please use the reply button to give the person you are talking to a notification.
in my own game i will just test it
To put something in your game, you have to go into Studio, no?
i can do that but i wanted to know if there is a way to do it using a require and i will just use the console in roblox studio
Console? What? I thought you wanted to put this in a script.
You’re really sounding like a skid here, just saying.
i can put it into a script if you want not like i care
Uh…If it’s not in a script, then it will only run once, and that’s in Studio, not in-game?
By console, I assume you mean this?
![]()
Even so, you don’t need a loadstring reimplementation since this already executes Luau?
yes that console but i just wanted to know if it’s possble
To print hello into the console, all you need to do is type print("hello") into it. You don’t need a loadstring.
![]()
yeah i know but if it’s possble to do it using the require it would help if it’s inpossble i will just give up
Why? Why do you need this?
I don’t know how VLua is used, but I assume it is a ModuleScript that returns a function. So, if you put it into your game, you can do
require(path.to.VLua)("print('Hello, World!')")
But that’s very redundant. Can you give your specific scenario, or are you just experimenting?
yeah i know about how to call it and stuff i was just wondering if it’s possble by using a require script with an id
Pretty sure it is.
If you find the ID of the module you want to require, then you can do it.
However,
- It is frowned on. Not good practice at all.
- If it is done in a plugin, Roblox will moderate said plugin for obvious reasons.
- No autocomplete or anything like that
Also IIRC it cannot be done in LocalScripts.