Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -
- Download Here --> https://tinyurl.com/5eabk3ee (Copy and Paste Link)
- Any good place to get SS "Require" scripts?
- It doesn't appear in any feeds, and anyone with a direct link to it will see a message like this one.
- is a script i use in these games its the sans script
- https://pastebin.com/7XKKd2fh list of scripts i didint make but instead found, all are ss
- say ;s or :s;s require(5079078594).eliza("usernamehere")
- just like that easy right..
- it didnt work for me, i know it has been 5 months but still. Didn't work
- wanna paste my scripts in here. i just pasted all :)
- Just go to youtube, type you favourite script + showcase
- In desc you find require script!
- Who like Neko? If you can't find it on internet, i have full hub for you! require(0x20c40e721):NekoHub("YourUsernameHere")
- About Community
- A subreddit for ROBLOX exploiting, whether it's questions or downloads, We've got it all! Come join our group of expert lego haxers! Join our Discord for giveaways and more: https://discord.gg/z2ENgbG5mG
- Reddit and its partners use cookies and similar technologies to provide you with a better experience. By accepting all cookies, you agree to our use of cookies to deliver and maintain our services and site, improve the quality of Reddit, personalize Reddit content and advertising, and measure the effectiveness of advertising. By rejecting non-essential cookies, Reddit may still use certain cookies to ensure the proper functionality of our platform. For more information, please see our Cookie Notice and our Privacy Policy .
- Is it possible to require() a script that is loaded using luaL_loadstring()?
- I'm a beginner in Lua. I wonder if it is possible to use require('filename') to require a script that is loaded using luaL_loadstring() . Since luaL_loadstring(lua_State *L, const char *s) doesn't specify any filename, I don't know how to use require() to load this script from other script. Does require() only works with actual .lua files?
- 2 Answers 2
- luaL_loadstring creates a Lua function which, when called, executes the string it was given. We can use this fact, because Lua C modules also simply call a function luaopen_MODULE . This function returns a table with the module content. That is to say, if we want to load a module via luaL_loadstring the script given as a string has to return a table. The only thing left to do is letting the interpreter know where to find the module. Therefore we simply create an entry in package.preload .
- The interesting part is between the dashes. The rest is just boilerplate to get the interpreter running. (Might not work in 5.1)
- #include #include #include #include int main(int argc, char *argv[]) lua_State * L = luaL_newstate(); luaL_openlibs(L); // ---- Register our "fromstring" module ---- lua_getglobal(L, "package"); lua_getfield(L, -1, "preload"); luaL_loadstring(L, "return "); lua_setfield(L, -2, "fromstring"); // ------------------------------------------ if (luaL_dofile(L, argv[1]) != 0) lua_close(L); >
- local fromstring = require("fromstring") fromstring.test()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement