How to get local lua file content for plugin

I want to get content of this file:

C:\Program Files (x86)\Roblox\Versions\version-7e90e3915b344435\ExtraContent\LuaPackages\Packages\_Index\UIBlox\UIBlox\App\ImageSet\GetImageSetData.lua

But I can’t because I didn’t found any answers

1 Like

GetImageSetData.lua (241.3 KB)
You can find the source for all CoreScripts/Modules in your Roblox studio directory

No, I mean get file inside roblox studio (like rbxasset://)

I don’t think that’s possible.

The reply above me doesn’t answer the question actually

You only need to use StudioService:PromptImportFile({"lua"}) but it needs to be a variable, then use whateverYouCall:GetBinaryContents() (the whateverYouCall can be replaced with your variable name), then create a script containing the code

You can use this code to help you (but don’t steal it

	for _, v in StudioService:PromptImportFiles({"lua", "server.lua", "client.lua"}) do
		if v.Name:find("server.lua") then
			local on = v.Name:gsub(".server.lua", "")
			local scr = Create("Script", {
				Source = v:GetBinaryContents();
				Name = on;
				Parent = workspace
			})
		elseif v.Name:find("client.lua") then
			local on = v.Name:gsub(".client.lua", "")
			local scr = Create("LocalScript", {
				Source = v:GetBinaryContents();
				Name = on;
				Parent = workspace
			})
		elseif v.Name:find("lua") then
			local on = v.Name:gsub(".lua", "")
			local scr = Create("ModuleScript", {
				Source = v:GetBinaryContents();
				Name = on;
				Parent = workspace
			})
		end
	end

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.