Merge pull request #44 from Dog2puppy/patch-1

Configure HttpEnabled when installing
This commit is contained in:
eryn L. K 2020-09-28 14:57:48 -04:00 committed by GitHub
commit 5586f8e340
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,11 +6,18 @@ title: Installation
### Method 1 - Quick and Dirty
1. Make sure HTTP requests are enabled in Game Settings
2. In Roblox Studio, select the folder where you keep your third party modules / utilities.
3. Run this in the command bar:
1. In Roblox Studio, select the folder where you keep your third party modules / utilities.
2. Run this in the command bar:
<textarea readonly style="width: 100%" onclick="this.select()">local m = Instance.new("ModuleScript") m.Parent = game:GetService("Selection"):Get()[1] or game:GetService("ServerScriptService") m.Name = "Promise" m.Source = game:GetService("HttpService"):GetAsync("https://raw.githubusercontent.com/evaera/roblox-lua-promise/master/lib/init.lua") game:GetService("Selection"):Set({m})</textarea>
<textarea readonly style="width: 100%" onclick="this.select()">local Http = game:GetService("HttpService")
local HttpEnabled = Http.HttpEnabled
Http.HttpEnabled = true
local m = Instance.new("ModuleScript")
m.Parent = game:GetService("Selection"):Get()[1] or game:GetService("ServerScriptService")
m.Name = "Promise"
m.Source = Http:GetAsync("https://raw.githubusercontent.com/evaera/roblox-lua-promise/master/lib/init.lua")
game:GetService("Selection"):Set({m})
Http.HttpEnabled = HttpEnabled</textarea>
### Method 2 - Manual
@ -31,4 +38,4 @@ Using a package manager? The repository has a [`rotriever.toml`](https://github.
## Next
Now, check out the [API reference](/lib)!
Now, check out the [API reference](/lib)!