cmumme / rbxts-attribute

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@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}!`)
})

About


Languages

Language:TypeScript 100.0%