Installation
Oh My Prvd is broken down into functional packages, which you will need to import into your game. This page will walk you through installing a package.
Methods
Install via Roblox
If you edit directly inside Roblox Studio, then you can import a Roblox model file containing Oh My Prvd.
- Head over to Oh My Prvd's "Releases" page.
- Find the package you will install, if you are just following the tutorials,
you can install the
ohmyprvd
core package. - Click the "Assets" dropdown to view the downloadable files:
- Click on the package you would like to import, which should end in
.rbxm
: - Open Roblox Studio to import the model. If you are just following the tutorials, just an empty baseplate will do.
- Right-click on
ReplicatedStorage
, and select "Insert from File": - You should see an
ohmyprvd
module script appear in ReplicatedStorage!
Install via a Package Manager
If you use Wally for Luau or NPM for TypeScript, Oh My Prvd has packages for both package managers.
-
Head over to one of these packages you will import:
@znotfireman/ohmyprvd
for the core package@znotfireman/ohmyprvd-lifecycles
for additional lifecycle methods
-
Copy the metadata below "Install", and append it below
[dependencies]
in yourwally.toml
:It will look something as such, with
ohmyprvd
renamed toprvd
for brevity: -
Then, install your packages:
This will install Oh My Prvd under the
Packages
directory, which is usually located inReplicatedStorage
: -
If you'd want the linker modules to also export types, you can use the Wally Package Types tool:
-
Head over to one of these packages you will import:
@rbxts/ohmyprvd
for the core package
-
Copy the command below "Install", and run it on a terminal:
-
This will install Oh My Prvd under
node_modules
, which can be imported directly:
Install via Source
If you are synchronizing external files into Roblox Studio, Oh My Prvd can be imported as source code.
- Head over to Oh My Prvd's 'Releases' page.
- Click the "Assets" dropdown to view the downloadable files:
- Under "Assets", download
Source code (zip)
. Inside is a copy of the Oh My Prvd GitHub repository.: - Inside the zip, open
packages
, then the package you'd like to import, and copy it'slib
folder; it may be inside another folder. - Create a new folder inside your project named "ohmyprvd", place it wherever you keep your libraries.
- For example, you might paste it inside a
shared
or apackages
folder. - Paste the contents of the
lib
folder into the newly created folder.
Testing
Now, you can create a script for testing:
- Create a
Script
underServerScriptService
. -
Remove the following code, and paste this in depending on your installation:
-
Playtest your game - if there are no errors, everything was set up correctly!
My script didn't work!
If you're seeing this error, then your script can't find Oh My Prvd.This code assumes you've placed Oh My Prvd under ReplicatedStorage. If
you've installed both elsewhere, you'll need to the require()
to point
towards the correct location.
If both looks like it points to the correct location, refer back to the
previous section and double-check you've set everything up properly. Make
sure under ReplicatedStorage, there's a ModuleScript named ohmyprvd
.