How do I get text from pastebin and automatically put it in a script. I think its httpservice but im retarded so please help. Thanks
COMMUNITY QUESTION
How do games like void script builder create scripts from pastebin links?
1 answer
To run a server script from a pastebin url, you can use HttpService:GetAsync() and loadstring()
local url = "http://pastebin.com/raw/blabla"
local content = game:GetService("HttpService"):GetAsync(url, true)
local f,e = loadstring(content)
if f and not e then
spawn(f)
else
warn("Syntax error:",e)
end
However, in order to run a custom LocalScript at runtime, you can't use loadstring()
What Void SB does is they made an API which uses an alt account on roblox and makes it upload the LocalScript with the specified source as a model, which is then loaded via require() (or InsertService:LoadAssetVersion(), not sure, would have to ask tusk) and ran on the player.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Ok thx