If this doesn’t work, I have nothing for you. Anyway, It’s worth a shot!
local HttpsService = game:GetService("HttpService")
local Data = HttpsService:GetAsync("https://api.github.com/repos/iKingNinja/Roblox-plugins-info/zipball/main")
local Result = HttpsService:JSONDecode(Data)
You are requiring a zip file, simple just put the link on the unpacked zip file, as i see the file inside is a json file, so you can Directly take that file and then decode it.
EDIT: Since Forum Is not working
Try This:
local HttpsService = game:GetService("HttpService")
local Data = HttpsService:GetAsync("https://raw.githubusercontent.com/iKingNinja/Roblox-plugins-info/main/info.json")
print(HttpsService:JSONDecode(Data))
You may be able to convert the data, but even then, it is pretty much useless unless you use it for something like a plugin. Roblox prohibits the live editing of scripts, so you could not possibly create a script while the game is running unless you are coding it for a plugin.
Yes the file inside is a json document but that was just a test repository because then i want to make this work for repos containing folders and other files
You’ll need to use the Git Trees API to get a list of files and their download links. From there, you can download the files and insert them into the game (if applicable).
Well as i told you before this is not going to just act on single files repositories but repositories with subfolders and multiple files so this won’t work unless i can get all the files listed
You can use this, it may help you find the answer:
-- SERVICES
local HttpService = game:GetService("HttpService")
-- VARIABLES
local PluginInfo = HttpService:JSONDecode(HttpService:GetAsync("https://raw. githubusercontent.com/iKingNinja/Roblox-plugins-info/main/info.json"))
-- SOURCE
print(PluginInfo)
The link in the GetAsync function has a hidden space that is after the https://raw., remove it since I had to add that space because the forum wasn’t letting me send the reply.