[Open-Source] Models Module

Introduction

Presenting, Models!

Information

The module is a class. You can use it to grant a model additional behaviours.

Documentation

First, grab the module from

here

You’ll need a model and a part assigned to the primary part property in the model.
After that, create a new model using the module:

local models = require([pathToModule])

local model = models.new([pathToModel])
Drop To use the drop function, you need to call it and assign the position where the model is going to be as a cframe in as the first argument, if you want to parent the model somewhere then add the object as the second argument otherwise put nil in the second argument, for the third argument enter a Vector3 value if you want to offset the model otherwise put nil, and for last enter "negative" if you want the cframe to be offset negatively by the offset value and "positive" for the opposite.

Example:

model:Drop(workspace.Baseplate.CFrame, nil, Vector3.new(0,100,0), "positive"))

Collaboration

You can contribute to the module by suggesting a feature by messaging me on the DevForum or by replying to this topic.
2 Likes