I have been making a thing where you can execute scripts in a roblox game (Script Builder), it works perfectly and all, but now I am trying to make it so you can get links from pstebin. It keeps coming up with "HTTP 404 (Not Found)
You could just do, loadstring(game:GetService("HttpService"):GetAsync("pastebin.com/raw/00000")). And the error says that or the pastebin link is incorrect or its just not valid.
Be careful when making something like this. Since it’s on the server, anyone can do something malicious. I would recommend a whitelist system where players can only execute scripts that you verify the safety of yourself.
-- Code on the server as an example
warn("Without a URL Encode")
print("http://pastebin.com/raw/wiMpx51T")
local l = game.HttpService:GetAsync("http://pastebin.com/raw/wiMpx51T");
print(l)
warn("With a URL encode")
print("pastebin.com/raw/"..game.HttpService:UrlEncode("wiMpx51T"))
l = game.HttpService:GetAsync("http://pastebin.com/raw/"..game.HttpService:UrlEncode("wiMpx51T"));
print(l)