Skip to content

Extends models by resizing and cloning parts based on size and rotation

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE
MIT
LICENSE.Plugin
Notifications You must be signed in to change notification settings

RailTypes/SmartExtend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SmartExtend

Extends models by resizing and cloning parts based on size and rotation.

The module is available on the releases page and the Roblox Creator Store. The plugin is also on the releases page and the Creator Store.

Usage

Running the function is very simple—just provide the required arguments.

extending: Model | BasePart, -- The model or part you want to extend
direction: Enum.NormalId, -- The direction you want to extend in
scale: number, -- How much you want to extend by (positive numbers only)
rotEpsilon: number?, -- The rotation epsilon (default 1e-5, must be between 0 and 1)
sizeEpsilon: number? -- The size epsilon (default 1e-5, positive numbers only)

Tips

  • Any PVInstance beside a BasePart in the model/part you'll be extending will be duplicated and moved along the primary part. To avoid this, move its contents to a Folder (or basically anything that isn't a PVInstance).
  • If BaseParts are being duplicated but you don't want that to happen, then increasing the epsilons may fix this.
  • To extend to a certain length, set your scale to the new length divided by the original length. The demo plugin has an example of this.

About

Extends models by resizing and cloning parts based on size and rotation

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE
MIT
LICENSE.Plugin

Stars

Watchers

Forks

Packages

No packages published

Languages