My personal alternative to @rbxts/make.
import { make, modify } from "@rbxts/neomake";
// basic usage
const root = make("Part", {
Position: Vector3.zero,
children: make("Attachment"),
});
// refs
const weldedPart = make("Part", (ref) => ({
Position: Vector3.zero,
Parent: Workspace,
children: make("WeldConstraint", {
Part0: ref,
Part1: root,
}),
}));
// carbon-copy
const light = make(new Instance("PointLight"), {
Color: new Color3(1, 1, 1),
Parent: weldedPart,
});
// modify an existing instance
modify(light, {
Enabled: false,
});
- This module does not have event support. If that is something you'd need I'd suggest using
@rbxts/make
or@rbxts/altmake
.
All PRs are welcome!