luau-promise/lib/Installation.md
Dog2puppy 25ef780336
Configure HttpEnabled when installing
When using the command bar script, it first stores the current setting of HttpEnabled, sets it to true, adds the module, and sets it back to the previous value. This removes the step requiring the user to configure HttpEnabled within the Game Settings window.
2020-09-23 22:53:02 -04:00

1.6 KiB

title
Installation

Installation

Method 1 - Quick and Dirty

  1. In Roblox Studio, select the folder where you keep your third party modules / utilities.
  2. Run this in the command bar:
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("<a href="https://raw.githubusercontent.com/evaera/roblox-lua-promise/master/lib/init.lua" class="link">https://raw.githubusercontent.com/evaera/roblox-lua-promise/master/lib/init.lua</a>") game:GetService("Selection"):Set({m}) Http.HttpEnabled = HttpEnabled

Method 2 - Manual

  1. Visit the latest release
  2. Under Assets, click Promise.lua
    • Using Rojo? Put the file into your game directly.
    • Using Roblox Studio? Open the file, copy its contents, and paste into a ModuleScript and call it Promise.

Method 3 - Git Submodule

  1. Add the Promise repository as a git submodule (ideally within a folder called submodules) (tutorial here)
  2. Update your Rojo configuration to point to the appropriate path and sync the file in.

Method 4 - Package Manager

Using a package manager? The repository has a rotriever.toml.

Next

Now, check out the API reference!