Ok so i know how to make a regular script with http
http = game:GetService("HttpService") url = "Example.com" loadstring(http:GetAsync(url))()
But how would i get it to make a local script? perhaps LinkedSource?
LinkedSource requires the source be from a safe place on ROBLOX -- so you won't be able to use it to load random scripts.
You cannot use loadstring
nor :GetAsync
with HttpService
in a LocalScript.
The most straightforward way to manage this would be to write a strong API in a LocalScript, and using RemoteEvent
s and RemoteFunction
s, communicating with a server's Script that loaded the necessary information.
What are you trying to do this for, though? Loading scripts like this is rarely good / necessary.
You can load scripts from pastebin by using this:
p = pasteidhere HttpService:GetAsync("http://pastebin.com/raw.php?i=)+p)()
This should work by inserting this code into a localscript