1.0.0 • Published 2 years ago

@rbxts/attribute v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@rbxts/attribute

A small attribute manager for Roblox TS.

import { Attributes } from "@rbxts/attribute"

const MyPart = new Instance("Part")

const AttributeManager = new Attributes(MyPart, {
    Speed: 52
})

AttributeManager.GetAttributeChangedSignal("Speed").Connect((Speed: number) => {
    print(`My new speed is ${Speed}!`)
})