{"id":"vyon/vluau","name":"vluau","scope":"vyon","platform":"roblox","description":"vLuau is a Luau VM with compiler which can be ran in Roblox.","version":"0.1.0","latest":"0.1.0","versions":["0.1.0"],"license":"MIT","licenseRating":"safe","licenseCaveats":["License identified from the packaged LICENSE file; the manifest declared none."],"licenseVerified":true,"dependencies":{},"integrity":"a8fbf102a21adf4dae3e619f5547b29584b59c0ce13e26bd538f07ac0a064f2c","likes":0,"downloads":0,"install":"forest install vyon/vluau","url":"https://forest.dev/p/roblox/vyon/vluau","files":"https://api.forest.dev/ai/package/roblox/vyon/vluau/files","readme":"# vLuau\r\nvLuau is a Luau VM with compiler which can be ran in Roblox.<br>\r\nLike vLua but with Fully Luau Support.<br>\r\nYou can use this module instead of loadstring in roblox but with sandboxed bytecode.\r\n\r\nRestructured to be compatible with wally, can be installed from [here](https://wally.run/package/vyon/vluau)\r\n\r\n## Credits\r\n- [vLuau](https://github.com/kosuke14/vLuau) - [me (kosuke14)](https://github.com/kosuke14)\r\n- [Fiu](https://github.com/TheGreatSageEqualToHeaven/Fiu) (Luau Bytecode Interpreter) - [TheGreatSageEqualToHeaven](https://github.com/TheGreatSageEqualToHeaven) and [Rerumu](https://github.com/Rerumu)\r\n- [LuauCeption](https://github.com/RadiatedExodus/LuauCeption) (Running Luau inside Luau) - [RadiatedExodus](https://github.com/RadiatedExodus) and [phoria](https://github.com/phoria)\r\n## Usage\r\n```lua\r\nlocal loadstring = require(path.to.MainModule) -- requiring vLuau MainModule\r\n\r\nloadstring(<string:(source or bytecode)>[, table:env, string:chunkname]): function\r\n-- compile code and build function\r\nloadstring.luau_execute(...)\r\n-- same as above\r\n\r\nloadstring.luau_compile(<string:source>[, string:chunkname]): string\r\n-- compile code and return bytecode\r\n\r\nloadstring.luau_load(<string:bytecode>[, table:env]): function\r\n-- build function with provided compiled bytecode\r\n\r\n-- Examples:\r\nloadstring(\"print('hello world!')\", getfenv(0))()\r\n-- (OUTPUT) hello world!\r\nloadstring(\"a\", nil, 'syntaxTest')()\r\n-- (ERROR) syntaxTest:1: Incomplete statement: expected assignment or a function call\r\n```\r\nRoblox Model is available at [here](https://create.roblox.com/store/asset/108059886578663) (trolled rblx fr)\r\n## Building\r\n1. Go [LuauCeption](https://github.com/RadiatedExodus/LuauCeption) and build them as compiler with latest Luau\r\n2. Replace Ception.luau with the built version.\r\n3. Place Instances in Roblox like this:\r\n```\r\n├── <ModuleScript> MainModule (init.lua)\r\n|   ├── <ModuleScript> Ception (Ception.luau)\r\n└── └── <ModuleScript> Fiu (Fiu.luau)\r\n```\r\n### Tips to add large 'ModuleScript' into Roblox Studio\r\nRoblox Studio could be crashed when you try to paste the large script into Roblox Studio.<br>\r\nThis tips may solve that problem.\r\n1. Open some place on Studio.\r\n2. Right click somewhere in Explorer, and click on 'Insert from file'.\r\n3. Find the large script to insert.\r\n4. Name the script to something to locate it easily.\r\n5. Save place or the script as XML format (place: .rbxlx, model: .rbxmx)\r\n6. Open the saved file with your text editor.\r\n7. Find the script item.\r\n8. Change `<Item class=\"Script\"` to `<Item class=\"ModuleScript\"` then save it.\r\n9. Open the file as Studio and the script is now ModuleScript.\r\n","readmeTruncated":false}