repo stringclasses 302
values | file_path stringlengths 18 241 | language stringclasses 2
values | file_type stringclasses 4
values | code stringlengths 76 697k | tokens int64 10 271k |
|---|---|---|---|---|---|
ratplier/jello | ratplier-jello-3b2849b/src/widgets/text.luau | luau | .luau | local root = require("../utils/rootkit")
local ui = require("../utils/uikit")
local paint = require("../utils/paint")
type source<T> = root.source<T>
type partial<T> = root.partial<T>
export type state = {
hovered: source<boolean>,
}
export type arguments = {
text: string?,
richText: boolean?,
color: Color3?,
wr... | 279 |
ratplier/jello | ratplier-jello-3b2849b/src/widgets/textinput.luau | luau | .luau | local config = require("../config")
local root = require("../utils/rootkit")
local ui = require("../utils/uikit")
local paint = require("../utils/paint")
type source<T> = root.source<T>
type partial<T> = root.partial<T>
export type state = {
text_changed: source<boolean>,
focused: source<boolean>,
hovered: source<... | 423 |
ratplier/jello | ratplier-jello-3b2849b/src/widgets/tooltip.luau | luau | .luau | local config = require("../config")
local root = require("../utils/rootkit")
local ui = require("../utils/uikit")
local paint = require("../utils/paint")
local TOOLTIP_OFFSET = vector.create(10, 15)
type source<T> = root.source<T>
type partial<T> = root.partial<T>
export type state = {
active: source<boolean>,
... | 339 |
ratplier/jello | ratplier-jello-3b2849b/src/widgets/window.luau | luau | .luau | local UserInputService = game:GetService("UserInputService")
local config = require("../config")
local root = require("../utils/rootkit")
local ui = require("../utils/uikit")
local paint = require("../utils/paint")
local extern_menubar = require("./menu/menubar")
local START_POSITION = vector.create(200, 200)
local D... | 2,290 |
bohraz/Arch | bohraz-Arch-bdfc450/Packages/_Index/csqrl_sift@0.0.8/sift/src/Array/copyDeep.lua | luau | .lua | --!strict
--[=[
@function copyDeep
@within Array
@param array {T} -- The array to copy.
@return {T} -- The copied array.
Copies an array, with deep copies of all nested arrays.
```lua
local array = { 1, 2, 3, { 4, 5 } }
local result = CopyDeep(array) -- { 1, 2, 3, { 4, 5 } }
print(result == array) -- fals... | 195 |
bohraz/Arch | bohraz-Arch-bdfc450/Packages/_Index/csqrl_sift@0.0.8/sift/src/Array/count.lua | luau | .lua | --!strict
local Sift = script.Parent.Parent
local Util = require(Sift.Util)
--[=[
@function count
@within Array
@param array {T} -- The array to count the number of items in.
@param predicate? (value: T, index: number, array: {T}) -> any -- The predicate to use to filter the array.
@return number -- The number ... | 255 |
bohraz/Arch | bohraz-Arch-bdfc450/Packages/_Index/csqrl_sift@0.0.8/sift/src/Array/difference.lua | luau | .lua | --!strict
local T = require(script.Parent.Parent.Types)
local toSet = require(script.Parent.toSet)
local toArray = require(script.Parent.Parent.Set.toArray)
local setDifference = require(script.Parent.Parent.Set.difference)
--[=[
@function difference
@within Array
@param array Array<V> -- The array to compare.... | 271 |
bohraz/Arch | bohraz-Arch-bdfc450/Packages/_Index/csqrl_sift@0.0.8/sift/src/Array/differenceSymmetric.lua | luau | .lua | --!strict
local T = require(script.Parent.Parent.Types)
local toSet = require(script.Parent.toSet)
local toArray = require(script.Parent.Parent.Set.toArray)
local setDifferenceSymmetric = require(script.Parent.Parent.Set.differenceSymmetric)
--[=[
@function differenceSymmetric
@within Array
@param array Array<... | 296 |
bohraz/Arch | bohraz-Arch-bdfc450/Packages/_Index/csqrl_sift@0.0.8/sift/src/Array/every.lua | luau | .lua | --!strict
--[=[
@function every
@within Array
@param array {T} -- The array to check.
@param predicate (value: T, index: number, array: {T}) -> any -- The predicate to use to check the array.
@return boolean -- Whether every item in the array passes the predicate.
Checks whether every item in the array passes t... | 223 |
bohraz/Arch | bohraz-Arch-bdfc450/Packages/_Index/csqrl_sift@0.0.8/sift/src/Array/filter.lua | luau | .lua | --!strict
local Sift = script.Parent.Parent
local Util = require(Sift.Util)
--[=[
@function filter
@within Array
@param array {T} -- The array to filter.
@param filterer? (value: T, index: number, array: {T}) -> any -- The callback to use to filter the array.
@return {T} -- The filtered array.
Filters an arra... | 273 |
bohraz/Arch | bohraz-Arch-bdfc450/Packages/_Index/csqrl_sift@0.0.8/sift/src/Array/init.lua | luau | .lua | --!strict
--[=[
@class Array
An array is a table consisting of index-value pairs. You don't need to
manually specify the indices when you create an array.
```lua
local array = {
"hello",
"world",
}
```
<br><br>
#### Aliases
`List`
]=]
local Array = {
at = require(script.at),
concat = require(script... | 492 |
bohraz/Arch | bohraz-Arch-bdfc450/Packages/_Index/csqrl_sift@0.0.8/sift/src/Array/is.lua | luau | .lua | --!strict
--[=[
@function is
@within Array
@param object any -- The object to check.
@return boolean -- Whether the object is an array.
Checks if the given object is an array.
```lua
local array = { 1, 2, 3 }
local dictionary = { hello = "world" }
local mixed = { 1, 2, hello = "world" }
Array.is... | 162 |
bohraz/Arch | bohraz-Arch-bdfc450/Packages/_Index/csqrl_sift@0.0.8/sift/src/Array/push.lua | luau | .lua | --!strict
--[=[
@function push
@within Array
@param array {T} -- The array to push an element to.
@param ... ...T -- The elements to push.
@return {T} -- The array with the pushed elements.
Adds elements to the end of the array.
#### Aliases
`append`
```lua
local array = { 1, 2, 3 }
local new = Push(ar... | 197 |
bohraz/Arch | bohraz-Arch-bdfc450/Packages/_Index/csqrl_sift@0.0.8/sift/src/Array/reduce.lua | luau | .lua | --!strict
--[=[
@function reduce
@within Array
@param array {T} -- The array to reduce.
@param reducer (accumulator: U, value: T, index: number, array: {T}) -> U -- The reducer to use.
@param initialReduction? U = {T}[1] -- The initial accumulator value.
@return U -- The final accumulator value.
Reduces the ar... | 318 |
bohraz/Arch | bohraz-Arch-bdfc450/Packages/_Index/csqrl_sift@0.0.8/sift/src/Array/reduceRight.lua | luau | .lua | --!strict
--[=[
@function reduceRight
@within Array
@param array {T} -- The array to reduce.
@param reducer (accumulator: U, value: T, index: number, array: {T}) -> U -- The reducer to use.
@param initialReduction? U = {T}[#{T}] -- The initial accumulator value.
@return U -- The final accumulator value.
Reduce... | 335 |
bohraz/Arch | bohraz-Arch-bdfc450/Packages/_Index/csqrl_sift@0.0.8/sift/src/Array/removeValue.lua | luau | .lua | --!strict
--[=[
@function removeValue
@within Array
@param array {T} -- The array to remove the value from.
@param value T -- The value to remove.
@return {T} -- The array with the value removed.
Removes a value from an array.
```lua
local array = { 1, 2, 3 }
local new = RemoveValue(array, 2) -- { 1, 3 }
... | 166 |
bohraz/Arch | bohraz-Arch-bdfc450/Packages/_Index/csqrl_sift@0.0.8/sift/src/Array/some.lua | luau | .lua | --!strict
--[=[
@function some
@within Array
@param array {T} -- The array to check.
@param predicate (value: T, index: number, array: {T}) -> any -- The predicate to use to check the array.
@return boolean -- Whether some item in the array passes the predicate.
Checks whether some item in the array passes the ... | 222 |
bohraz/Arch | bohraz-Arch-bdfc450/Packages/_Index/csqrl_sift@0.0.8/sift/src/Array/update.lua | luau | .lua | --!strict
local Sift = script.Parent.Parent
local Util = require(Sift.Util)
local Copy = require(script.Parent.copy)
type Callback<T> = (index: number) -> T
type Updater<T> = (currentValue: T, index: number) -> T
local function call<T>(callback: Callback<T>, index: number)
if type(callback) == "function" then
ret... | 435 |
bohraz/Arch | bohraz-Arch-bdfc450/Packages/_Index/csqrl_sift@0.0.8/sift/src/Dictionary/copyDeep.lua | luau | .lua | --!strict
--[=[
@function copyDeep
@within Dictionary
@param dictionary T -- The dictionary to copy.
@return T -- The copied dictionary.
Copies a dictionary recursively.
```lua
local dictionary = { hello = { world = "goodbye" } }
local new = CopyDeep(dictionary) -- { hello = { world = "goodbye" } }
... | 173 |
bohraz/Arch | bohraz-Arch-bdfc450/Packages/_Index/csqrl_sift@0.0.8/sift/src/Dictionary/init.lua | luau | .lua | --!strict
--[=[
@class Dictionary
Dictionaries are a type of data structure that can be used to store key-value pairs.
```lua
local dictionary = {
cats = 2,
dogs = 1
}
print(dictionary.cats) -- 2
```
]=]
local Dictionary = {
copy = require(script.copy),
copyDeep = require(script.copyDeep),
count = requ... | 297 |
bohraz/Arch | bohraz-Arch-bdfc450/Packages/_Index/csqrl_sift@0.0.8/sift/src/Dictionary/some.lua | luau | .lua | --!strict
--[=[
@function some
@within Dictionary
@param dictionary {[K]: V} -- The dictionary to check.
@param predicate (value: V, key: K, dictionary: { [K]: V }) -> any -- The predicate to check against.
@return boolean -- Whether or not the predicate returned true for any value.
Checks whether or not ... | 255 |
bohraz/Arch | bohraz-Arch-bdfc450/Packages/_Index/csqrl_sift@0.0.8/sift/src/Dictionary/withKeys.lua | luau | .lua | --!strict
--[=[
@function withKeys
@within Dictionary
@param dictionary {[K]: V} -- The dictionary to select the keys from.
@param keys ...K -- The keys to keep.
@return {[K]: V} -- The dictionary with only the given keys.
Returns a dictionary with the given keys.
```lua
local dictionary = { hello =... | 200 |
bohraz/Arch | bohraz-Arch-bdfc450/Packages/_Index/csqrl_sift@0.0.8/sift/src/Set/count.lua | luau | .lua | --!strict
local Sift = script.Parent.Parent
local Util = require(Sift.Util)
--[=[
@function count
@within Set
@param set { [T]: boolean } -- The set to count.
@param predicate? (item: T, set: { [T]: boolean }) -> boolean? -- The predicate to use to count.
@return number -- The number of items in the set.
... | 255 |
bohraz/Arch | bohraz-Arch-bdfc450/Packages/_Index/csqrl_sift@0.0.8/sift/src/Set/difference.lua | luau | .lua | --!strict
local T = require(script.Parent.Parent.Types)
--[=[
@function difference
@within Set
@param set Set<V> -- The set to compare.
@param ... ...Set<V> -- The sets to compare against.
@return Set<V> -- The difference between the sets.
Returns a set of values that are in the first set, but not in the... | 227 |
bohraz/Arch | bohraz-Arch-bdfc450/Packages/_Index/csqrl_sift@0.0.8/sift/src/Set/differenceSymmetric.lua | luau | .lua | --!strict
local T = require(script.Parent.Parent.Types)
--[=[
@function differenceSymmetric
@within Set
@param set Set<V> -- The set to compare.
@param ... ...Set<V> -- The sets to compare against.
@return Set<V> -- The symmetric difference between the sets.
Returns a set of values that are in the first ... | 281 |
bohraz/Arch | bohraz-Arch-bdfc450/Packages/_Index/csqrl_sift@0.0.8/sift/src/Set/filter.lua | luau | .lua | --!strict
local Sift = script.Parent.Parent
local Util = require(Sift.Util)
--[=[
@function filter
@within Set
@param set { [T]: boolean } -- The set to filter.
@param predicate? (item: T, set: { [T]: boolean }) -> any -- The function to filter the set with.
@return { [T]: boolean } -- The filtered set.
... | 259 |
bohraz/Arch | bohraz-Arch-bdfc450/Packages/_Index/csqrl_sift@0.0.8/sift/src/Set/init.lua | luau | .lua | --!strict
--[=[
@class Set
Sets are a collection of values. They are used to store unique values.
They are essentially a dictionary, but each value is stored as a boolean.
This means that a value can only be in a set once.
```lua
local set = { hello = true }
local newSet = Add(set, "world") -- { hello = true,... | 235 |
bohraz/Arch | bohraz-Arch-bdfc450/Packages/_Index/csqrl_sift@0.0.8/sift/src/Types.lua | luau | .lua | --selene: allow(unused_variable)
local None = require(script.Parent.None)
--[=[
@type None None
@within Sift
]=]
export type None = typeof(None)
export type Dictionary<K, V> = { [K]: V }
export type Array<T> = Dictionary<number, T>
export type Set<T> = Dictionary<T, boolean>
export type Table = Dictionary<any, any... | 98 |
bohraz/Arch | bohraz-Arch-bdfc450/Packages/_Index/roblox_testez@0.4.1/testez/src/Expectation.lua | luau | .lua | --[[
Allows creation of expectation statements designed for behavior-driven
testing (BDD). See Chai (JS) or RSpec (Ruby) for examples of other BDD
frameworks.
The Expectation class is exposed to tests as a function called `expect`:
expect(5).to.equal(5)
expect(foo()).to.be.ok()
Expectations can be negated u... | 1,740 |
bohraz/Arch | bohraz-Arch-bdfc450/Packages/_Index/roblox_testez@0.4.1/testez/src/ExpectationContext.lua | luau | .lua | local Expectation = require(script.Parent.Expectation)
local checkMatcherNameCollisions = Expectation.checkMatcherNameCollisions
local function copy(t)
local result = {}
for key, value in pairs(t) do
result[key] = value
end
return result
end
local ExpectationContext = {}
ExpectationContext.__index = Expectati... | 217 |
bohraz/Arch | bohraz-Arch-bdfc450/Packages/_Index/roblox_testez@0.4.1/testez/src/TestSession.lua | luau | .lua | --[[
Represents the state relevant while executing a test plan.
Used by TestRunner to produce a TestResults object.
Uses the same tree building structure as TestPlanBuilder; TestSession keeps
track of a stack of nodes that represent the current path through the tree.
]]
local TestEnum = require(script.Parent.Tes... | 1,558 |
bohraz/Arch | bohraz-Arch-bdfc450/Packages/_Index/roblox_testez@0.4.1/testez/testez-cli/src/test-runner.lua | luau | .lua | --[[
This test runner is invoked in all the environments that we want to test our
project in.
TestEZ's CLI targets Lemur, Roblox Studio, and Roblox-CLI.
Assumes TestEZ is put into ReplicatedStorage and that test roots have a
"TestEZTestRoot" CollectionService tag attached to them.
]]
-- luacheck: globals game s... | 443 |
bohraz/Arch | bohraz-Arch-bdfc450/Packages/_Index/roblox_testez@0.4.1/testez/tests/e2e/init.lua | luau | .lua | local TestEZ = require(script.Parent.Parent.TestEZ)
local noOptReporter = {
report = function()
end,
}
return {
["run expect-extend e2e"] = function()
TestEZ.run(script:FindFirstChild("expect-extend"), function(results)
assert(#results.errors == 0,
"Expected no errors, got " .. tostring(results.errors[1])... | 725 |
bohraz/Arch | bohraz-Arch-bdfc450/Packages/_Index/roblox_testez@0.4.1/testez/tests/e2e/lifecycle/completeLifecycleOrderTests.lua | luau | .lua | -- Shared test cases asserting lifecycle hooks are firing in the correct order
return function()
describe("full example", function()
beforeAll(function(context)
context.globalState = {}
table.insert(context.globalState, "beforeAll")
expect(table.find(context.globalState, "beforeAll")).to.equal(1)
end)
... | 353 |
bohraz/Arch | bohraz-Arch-bdfc450/Packages/_Index/sleitnick_signal@2.0.1/signal/init.lua | luau | .lua | -- -----------------------------------------------------------------------------
-- Batched Yield-Safe Signal Implementation --
-- This is a Signal class which has effectively identical behavior to a --
-- normal RBXScriptSignal, with the only difference being a couple extra ... | 2,629 |
bohraz/Arch | bohraz-Arch-bdfc450/Packages/janitor.lua | luau | .lua | return require(script.Parent._Index["howmanysmall_janitor@1.15.6"]["janitor"])
| 24 |
bohraz/Arch | bohraz-Arch-bdfc450/src/Check.luau | luau | .luau | local check = {}
function check.isDescendant(state1, state2)
if not state2 then
return function(item, index)
return check.isDescendant(item, state1)
end
end
local parent = state1.parent
while parent do
if parent == state2 then
return true
end
parent = parent.parent
end
return false
end
functi... | 146 |
bohraz/Arch | bohraz-Arch-bdfc450/src/Transition.luau | luau | .luau | local Sift = require(script.Parent.Parent.sift)
local Check = require(script.Parent.Check)
local function getProperAncestors(state1, state2)
local orderedAncestors = {}
local parent = state1.parent
while parent do
table.insert(orderedAncestors, parent)
parent = parent.parent
end
return orderedAncestors
end
... | 2,170 |
bohraz/Arch | bohraz-Arch-bdfc450/src/Types.luau | luau | .luau | --[=[
@class Arch
This is the Arch class
]=]
--[=[
@type Context { janitor: any, event: string, Send: (string, any) -> (), target: string?, any: any, }
@within Arch ]=]
--[=[
@type Options { id: string, context: { any }?, actions: { string: (Context, any) -> () }?, guards: { string: (Context, any) -> boolean }?, maxL... | 949 |
bohraz/Arch | bohraz-Arch-bdfc450/src/directTranslation.luau | luau | .luau | local function exitInterpreter() end
local function microstep(enabledTransitions) end
local function executeTransitionContent(enabledTransitions) end
local function isInFinalState(s) end
local function getProperAncestors(state1, state2)
local orderedAncestors = {}
local parent = state1.parent
repeat
table.ins... | 2,448 |
bohraz/Arch | bohraz-Arch-bdfc450/src/init.luau | luau | .luau | local Sift = require(script.Parent.sift)
local Signal = require(script.Parent.signal)
local Janitor = require(script.Parent.janitor)
local Transition = require(script.Transition)
local Check = require(script.Check)
local function createContext(machine, context)
context.Sift = Sift
function context.Send(eventName, .... | 2,862 |
bohraz/Arch | bohraz-Arch-bdfc450/tests/server.server.luau | luau | .luau | local TestEZ = require(script.Parent.Packages.testez)
local Arch = require(script.Parent.Packages.Arch)
TestEZ.TestBootstrap:run({ script.Parent["Arch.spec"] })
| 37 |
dig1t/attrify | dig1t-attrify-b6329b0/dev/Client/_init.client.luau | luau | .luau | if not game:IsLoaded() then
game.Loaded:Wait()
end
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Attrify = require(ReplicatedStorage.Attrify)
Attrify.start()
| 47 |
dig1t/attrify | dig1t-attrify-b6329b0/dev/Server/_init.server.luau | luau | .luau | local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Attrify = require(ReplicatedStorage.Attrify)
Attrify.start()
Players.PlayerAdded:Connect(function(player)
Attrify.setPlayerCheckpoint(player, 2)
end) | 60 |
dig1t/attrify | dig1t-attrify-b6329b0/modules/roblox-modules/src/Animation/init.luau | luau | .luau | local RunService = game:GetService("RunService")
local TweenService = game:GetService("TweenService")
local Maid = require(script.Parent.Maid)
local Promise = require(script.Parent.Promise)
local Util = require(script.Parent.Util)
local DEFAULT_TWEEN_TIME = 0.2
--[=[
@class Animation
Animation library for animati... | 1,583 |
dig1t/attrify | dig1t-attrify-b6329b0/modules/roblox-modules/src/Badge/init.luau | luau | .luau | local BadgeService = game:GetService("BadgeService")
local Players = game:GetService("Players")
local Cache = require(script.Parent.Cache)
local badges = {}
--[=[
@class Badge
Badge management class for awarding badges to players.
Use the `Badge.add` method to add badges to the cache.
Example:
```lua
-- Set... | 839 |
dig1t/attrify | dig1t-attrify-b6329b0/modules/roblox-modules/src/Cache/init.luau | luau | .luau | local Maid = require(script.Parent.Maid)
local Util = require(script.Parent.Util)
--[=[
@class Cache
Cache class for storing data in a cache instance.
Based off [node-cache](https://npmjs.com/package/node-cache).
Install with wally by adding the following to your `wally.toml`:
```toml
Cache = "dig1t/cache@1.0... | 2,596 |
dig1t/attrify | dig1t-attrify-b6329b0/modules/roblox-modules/src/GamePass/init.luau | luau | .luau | local MarketplaceService = game:GetService("MarketplaceService")
local Players = game:GetService("Players")
local Cache = require(script.Parent.Cache)
local Maid = require(script.Parent.Maid)
--[=[
@class GamePass
Game pass library that caches game pass ownership results and watches for pass purchases.
This modu... | 1,054 |
dig1t/attrify | dig1t-attrify-b6329b0/modules/roblox-modules/src/Palette/init.luau | luau | .luau | local shadeIndex = {
[50] = 1,
[100] = 2,
[200] = 3,
[300] = 4,
[400] = 5,
[500] = 6,
[600] = 7,
[700] = 8,
[800] = 9,
[900] = 10,
}
local paletteColors = {
red = {
{ 255, 255, 255 },
{ 252, 218, 216 },
{ 250, 183, 180 },
{ 247, 149, 144 },
{ 245, 115, 109 },
{ 242, 81, 73 },
{ 239, 47, 37 },
... | 1,688 |
dig1t/attrify | dig1t-attrify-b6329b0/modules/roblox-modules/src/Ragdoll/init.luau | luau | .luau | local Debris = game:GetService("Debris") -- TODO: Replace with a better Debris module
local PhysicsService = game:GetService("PhysicsService")
local RunService = game:GetService("RunService")
local Workspace = game:GetService("Workspace")
local Util = require(script.Parent.Util)
local PLAYER_COLLISION_GROUP_NAME: str... | 1,562 |
dig1t/attrify | dig1t-attrify-b6329b0/modules/roblox-modules/src/Replica/ReplicaClient.luau | luau | .luau | --[=[
@class ReplicaClient
@client
@tag Replica
A class for receiving replicated objects from the server.
]=]
local RunService = game:GetService("RunService")
local ReplicaTypes = require(script.Parent.ReplicaTypes)
local Signal = require(script.Parent.Parent.Signal)
local remote: RemoteEvent
local ReplicaClie... | 1,421 |
dig1t/attrify | dig1t-attrify-b6329b0/modules/roblox-modules/src/Replica/ReplicaTypes.luau | luau | .luau | --[=[
@interface Action
@within Replica
.type string -- The type of the action
.payload any -- The data of the action
]=]
export type Action = {
type: string,
payload: any,
}
--[=[
@interface ReplicaTypes
@within Replica
.replicaId string -- The unique identifier for the replica
.class string -- The class of... | 320 |
dig1t/attrify | dig1t-attrify-b6329b0/modules/roblox-modules/src/Replica/init.luau | luau | .luau | --[=[
@class Replica
A class for creating replicated objects.
[Replica.Server](/api/ReplicaServer) is used on the server to create and manage replicated objects.
[Replica.Client](/api/ReplicaClient) is used on the client to receive replicated objects.
Install with wally by adding the following to your `wally.to... | 239 |
dig1t/attrify | dig1t-attrify-b6329b0/modules/roblox-modules/src/Signal/init.luau | luau | .luau | --[=[
@class Signal
Author: dig1t
A lightweight signal implementation that allows for firing, connecting, and disconnecting.
Install with wally by adding the following to your `wally.toml`:
```toml
Signal = "dig1t/signal@1.0.0"
```
]=]
--!strict
--!native
local HttpService = game:GetService("HttpService")
l... | 1,922 |
dig1t/attrify | dig1t-attrify-b6329b0/modules/roblox-modules/src/State/init.luau | luau | .luau | --[=[
@class State
The State class is used to manage state for anything.
It can be used to store data for the game, UI, or any other feature.
Usage example
```lua
local state = State.new({
val = 1,
time = tick(),
nest = {
val = 123123
}
})
local connection: RBXScriptConnection = state.Changed:Con... | 2,695 |
dig1t/attrify | dig1t-attrify-b6329b0/modules/roblox-modules/src/Trash/init.luau | luau | .luau | --[=[
@class Trash
Trash is a class that allows you to destroy an instance after a certain amount of time.
If the instance is destroyed before the time is up, the `Trash` object will automatically clear itself
In addition to instances, this class can be used to destroy any class object that has a `Destroy` metho... | 1,071 |
dig1t/attrify | dig1t-attrify-b6329b0/modules/roblox-modules/src/Util/DateUtil.luau | luau | .luau | local DateUtil = {}
export type DateTimeComponents = {
Year: number,
Month: number,
Day: number,
Hour: number,
Minute: number,
Second: number,
Millisecond: number,
} | any
local milisecondsInSecond: number = 1000
local milisecondsInMinute: number = milisecondsInSecond * 60
local milisecondsInHour: number = mil... | 2,210 |
dig1t/attrify | dig1t-attrify-b6329b0/modules/roblox-modules/src/Util/MathUtil.luau | luau | .luau | --!native
local MathUtil = {}
--[=[
Rounds a number to the nearest integer.
#### Example:
```lua
Util.round(1.5) -- 2
Util.round(1.4) -- 1
```
@within Util
@param _number number
@return number
]=]
function MathUtil.round(_number: number): number
assert(typeof(_number) == "number", "Number argument must be... | 2,617 |
dig1t/attrify | dig1t-attrify-b6329b0/modules/roblox-modules/src/Util/PlayerUtil.luau | luau | .luau | local Players = game:GetService("Players")
local groupRankCache = {}
local groupRankCacheExpiration = 60 -- 1 minutes
local PlayerUtil = {}
--[=[
Gets the group rank of a player.
#### Example:
```lua
Util.getGroupRank(game.Players.LocalPlayer, 1) -- 255
```
@within Util
@param player Player
@param groupId ... | 1,341 |
dig1t/attrify | dig1t-attrify-b6329b0/modules/roblox-modules/src/Util/SearchUtil.luau | luau | .luau | --!native
local SearchUtil = {}
--[=[
Gets the number of parts in the given instance
Example:
```lua
Util.getPartCount(game.Workspace.NPC) -- 5
```
@within Util
@param instance Instance
@return number
]=]
function SearchUtil.getPartCount(instance: Instance?): number
if instance == nil then
warn("Util.get... | 2,352 |
dig1t/attrify | dig1t-attrify-b6329b0/modules/roblox-modules/src/Util/SystemUtil.luau | luau | .luau | local HttpService = game:GetService("HttpService")
local RunService = game:GetService("RunService")
local SystemUtil = {}
--[=[
Generates a UUID/GUID (Universally Unique Identifier) random string using HttpService:GenerateGUID.
@within Util
@return string
]=]
function SystemUtil.generateUUID(): string
return Htt... | 774 |
dig1t/attrify | dig1t-attrify-b6329b0/modules/roblox-modules/src/Weapon/WeaponClient.luau | luau | .luau | --[[
@name Weapon System Client
@description A weapon library for quickly building weapons.
@author dig1t
@version 1.0.0
]]
--!nocheck
local Debris = game:GetService("Debris")
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RunService = game:GetServi... | 4,064 |
dig1t/attrify | dig1t-attrify-b6329b0/modules/roblox-modules/src/Weapon/WeaponServer.luau | luau | .luau | --[[
@name Weapon System Server
@description A weapon library for quickly building weapons.
@author dig1t
@version 1.0.0
]]
--!nocheck
local Debris = game:GetService("Debris")
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RunService = game:GetServi... | 3,894 |
dig1t/attrify | dig1t-attrify-b6329b0/modules/roblox-modules/src/Weapon/init.luau | luau | .luau | -- WIP module
local RunService = game:GetService("RunService")
if RunService:IsServer() then
return require(script.WeaponServer)
else
return require(script.WeaponClient)
end
| 42 |
dig1t/attrify | dig1t-attrify-b6329b0/modules/roblox-modules/testez.d.luau | luau | .luau | declare function afterAll(callback: (context: { [any]: any }) -> ()): ()
declare function afterEach(callback: (context: { [any]: any }) -> ()): ()
declare function beforeAll(callback: (context: { [any]: any }) -> ()): ()
declare function beforeEach(callback: (context: { [any]: any }) -> ()): ()
declare function descr... | 366 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Modules/CollectionWatcher.luau | luau | .luau | --!strict
local CollectionService = game:GetService("CollectionService")
local Maid = require(script.Parent.Parent.Maid)
local Signal = require(script.Parent.Parent.Signal)
--[[
@class CollectionObject
Wrapper for CollectionService instances found using CollectionWatcher.
Provides a `Destroyed` signal that fires w... | 778 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Types.luau | luau | .luau | --!strict
--[[
@class Types
Shared type definitions for Attrify watchers.
]]
local CollectionWatcher = require(script.Parent.Modules.CollectionWatcher)
export type CollectionWatcher<T> = CollectionWatcher.CollectionWatcher<T>
export type CollectionObject<T> = CollectionWatcher.CollectionObject<T>
export type Watch... | 178 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Animation/bobber.luau | luau | .luau | --!strict
--[[
@class Bobber
Floats an object up and down continuously.
Attributes:
- attr_bob_height: number (default: 2) - Maximum bob distance in studs
- attr_bob_speed: number (default: 1) - Cycles per second
]]
local RunService = game:GetService("RunService")
local Attrify = script.Parent.Parent.Parent
lo... | 362 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Animation/elevator.luau | luau | .luau | --!strict
--[[
@class Elevator
Multi-floor elevator that moves between stops.
Requires:
- Stop1, Stop2, Stop3... (Attachments) - Floor positions
Attributes:
- attr_move_time: number (default: 2) - Time to move between floors
- attr_wait_time: number (default: 3) - Time to wait at each floor
]]
local RunServic... | 702 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Animation/moving_platform.luau | luau | .luau | --!strict
--[[
@class MovingPlatform
Moves a platform between two attachment points.
Requires:
- Point1 (Attachment) - First position
- Point2 (Attachment) - Second position
Attributes:
- attr_studs_per_second: number (default: 1) - Movement speed
- attr_wait_time: number (default: 1) - Time to wait at each e... | 782 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Animation/orbiter.luau | luau | .luau | --!strict
--[[
@class Orbiter
Orbits an object around a center point.
Attributes:
- attr_orbit_radius: number (default: 5) - Radius of the orbit in studs
- attr_orbit_speed: number (default: 1) - Rotations per second
- attr_center_name: string (optional) - Name of part to orbit around (defaults to original posit... | 491 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Animation/shaker.luau | luau | .luau | --!strict
--[[
@class Shaker
Applies a vibration/jitter effect to an object.
Attributes:
- attr_intensity: number (default: 0.1) - Maximum shake offset in studs
- attr_speed: number (default: 20) - Shake frequency
]]
local RunService = game:GetService("RunService")
local Attrify = script.Parent.Parent.Parent
l... | 410 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Animation/spinner.luau | luau | .luau | --!strict
--[[
@class Spinner
Continuously rotates a Model or BasePart around a specified axis.
Attributes:
- attr_seconds_per_round: number (default: 2.5) - Time to complete a 360 degree rotation
- attr_axis: Vector3 (default: 0, 1, 0) - Rotation axis (Y-axis by default)
]]
local RunService = game:GetService("R... | 400 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Animation/swing_part.luau | luau | .luau | --!strict
--[[
@class SwingPart
Swings a Model or BasePart like a pendulum.
Make sure to edit the part's "PivotOffset" so it swings from that pivot.
Attributes:
- attr_seconds_per_cycle: number (default: 2.5) - Time for a full swing cycle
- attr_swing_angle: number (default: 30) - Maximum swing angle in degrees... | 524 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Animation/thwomp.luau | luau | .luau | --!strict
--[[
@class Thwomp
Smash/crusher behavior that drops down and rises back up.
Requires:
- Floor (Attachment) - The target position when dropped
Attributes:
- attr_animation_time: number (default: 1) - Time to animate up/down
- attr_time_on_floor: number (default: 1) - Time to stay at floor position
-... | 824 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Combat/KillPart.luau | luau | .luau | --!strict
--[[
@class KillPart
Damages or kills players on touch.
Attributes:
- attr_damage: number (default: 100) - Amount of damage to deal
- attr_cooldown: number (default: 3) - Cooldown between damage applications per player
]]
local RunService = game:GetService("RunService")
local Attrify = script.Parent.P... | 377 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Combat/damage_zone.luau | luau | .luau | --!strict
--[[
@class DamageZone
Continuously damages players while they remain inside the zone.
Attributes:
- attr_damage_rate: number (default: 1) - Time between damage ticks in seconds
- attr_damage_amount: number (default: 10) - Damage dealt per tick
]]
local RunService = game:GetService("RunService")
local... | 513 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Combat/heal_part.luau | luau | .luau | --!strict
--[[
@class HealPart
Heals players on touch.
Attributes:
- attr_heal_amount: number (default: 25) - Amount of health to restore
- attr_cooldown: number (default: 3) - Cooldown between heals per player
]]
local RunService = game:GetService("RunService")
local Attrify = script.Parent.Parent.Parent
local... | 395 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Combat/heal_zone.luau | luau | .luau | --!strict
--[[
@class HealZone
Continuously heals players while they remain inside the zone.
Attributes:
- attr_heal_rate: number (default: 1) - Time between heal ticks in seconds
- attr_heal_amount: number (default: 5) - Health restored per tick
]]
local RunService = game:GetService("RunService")
local Attrify... | 540 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Constraint/hinge_part.luau | luau | .luau | --!strict
--[[
@class HingePart
Creates a hinge constraint on this part.
Attributes:
- attr_target_name: string (required) - Name of the target part to hinge to
- attr_hinge_axis: Vector3 (default: 0, 1, 0) - Axis of rotation
- attr_motor_enabled: boolean (default: false) - Enable motor rotation
- attr_motor_sp... | 721 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Constraint/rope_part.luau | luau | .luau | --!strict
--[[
@class RopePart
Creates a rope constraint between this part and a target.
Attributes:
- attr_target_name: string (required) - Name of the target part
- attr_length: number (default: 10) - Rope length in studs
]]
local RunService = game:GetService("RunService")
local Attrify = script.Parent.Parent... | 448 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Door/auto_door.luau | luau | .luau | --!strict
--[[
@class AutoDoor
Auto-opening door that slides open when a player approaches.
Attributes:
- attr_open_offset: Vector3 (default: 0, 5, 0) - How far the door moves when open
- attr_open_time: number (default: 0.5) - Time to open/close
- attr_trigger_distance: number (default: 10) - Distance to trigge... | 736 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Door/sliding_panel.luau | luau | .luau | --!strict
--[[
@class SlidingPanel
Panel that slides open when triggered.
Attributes:
- attr_slide_offset: Vector3 (default: 5, 0, 0) - How far the panel slides
- attr_slide_time: number (default: 0.5) - Time to slide open/close
- attr_trigger_distance: number (default: 10) - Distance to trigger
]]
local RunSer... | 749 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Door/swing_gate.luau | luau | .luau | --!strict
--[[
@class SwingGate
Rotating gate that swings open when triggered.
Make sure to edit the part's "PivotOffset" so it swings from that pivot.
Attributes:
- attr_open_angle: number (default: 90) - Angle to rotate when open
- attr_open_time: number (default: 0.5) - Time to open/close
- attr_trigger_dis... | 732 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Interaction/button.luau | luau | .luau | --!strict
--[[
@class Button
Touch-activated button with optional cooldown.
Attributes:
- attr_cooldown: number (default: 1) - Cooldown between activations
Fires Signal "ButtonPressed" with (player, part)
]]
local RunService = game:GetService("RunService")
local Attrify = script.Parent.Parent.Parent
local Pack... | 320 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Interaction/clickable.luau | luau | .luau | --!strict
--[[
@class Clickable
Adds a ClickDetector to a part.
Attributes:
- attr_max_distance: number (default: 32) - Maximum click distance
Fires Signal "Clicked" with (player, part)
]]
local RunService = game:GetService("RunService")
local Attrify = script.Parent.Parent.Parent
local Packages = Attrify
loc... | 355 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Interaction/prompt_part.luau | luau | .luau | --!strict
--[[
@class PromptPart
Adds a proximity prompt to a part.
Attributes:
- attr_prompt_text: string (default: "Interact") - Text shown on the prompt
- attr_action_text: string (default: "Prompt") - Action key text
- attr_hold_duration: number (default: 0) - Hold duration in seconds
- attr_max_distance: n... | 707 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Movement/conveyor.luau | luau | .luau | --!strict
--[[
@class Conveyor
Moves players and parts along the conveyor direction.
Attributes:
- attr_speed: number (default: 10) - Conveyor speed in studs per second
- attr_direction: Vector3 (default: 0, 0, -1) - Direction relative to part's CFrame
]]
local RunService = game:GetService("RunService")
local A... | 387 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Movement/gravity_zone.luau | luau | .luau | --!strict
--[[
@class GravityZone
Applies custom gravity to players while inside the zone.
Attributes:
- attr_gravity_force: number (default: 50) - Gravity force (positive = down, negative = up)
]]
local RunService = game:GetService("RunService")
local Attrify = script.Parent.Parent.Parent
local Packages = Attri... | 513 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Movement/jump_pad.luau | luau | .luau | --!strict
--[[
@class JumpPad
Launches players into the air on touch.
Attributes:
- attr_jump_distance: number (default: 20) - Target studs distance to launch
- attr_cooldown: number (default: 1) - Cooldown between launches per player
- attr_push_relative_to_object: boolean (default: true) - Push relative to obj... | 786 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Movement/push_zone.luau | luau | .luau | --!strict
--[[
@class PushZone
Pushes players in a specified direction while inside the zone.
Attributes:
- attr_force: number (default: 20) - Push force magnitude
- attr_direction: Vector3 (default: 0, 0, 1) - Push direction relative to part's CFrame
]]
local RunService = game:GetService("RunService")
local At... | 580 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Movement/slow_zone.luau | luau | .luau | --!strict
--[[
@class SlowZone
Slows player movement while inside the zone.
Attributes:
- attr_multiplier: number (default: 0.5) - Speed multiplier (0.5 = 50% speed)
]]
local RunService = game:GetService("RunService")
local Attrify = script.Parent.Parent.Parent
local Packages = Attrify
local CollectionWatcher =... | 455 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Movement/speed_boost.luau | luau | .luau | --!strict
--[[
@class SpeedBoost
Temporarily increases player walk speed when touched.
Attributes:
- attr_multiplier: number (default: 2) - Speed multiplier
- attr_duration: number (default: 5) - Duration of the boost in seconds
- attr_cooldown: number (default: 10) - Cooldown before player can get another boost... | 523 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Movement/speed_zone.luau | luau | .luau | --!strict
--[[
@class SpeedZone
Increases player movement speed while inside the zone.
Attributes:
- attr_multiplier: number (default: 1.5) - Speed multiplier (1.5 = 150% speed)
]]
local RunService = game:GetService("RunService")
local Attrify = script.Parent.Parent.Parent
local Packages = Attrify
local Collect... | 455 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Movement/teleporter.luau | luau | .luau | --!strict
--[[
@class Teleporter
Teleports players between two parts within a Model.
Structure:
- Model (tagged with "teleporter")
- From: BasePart - Entry point
- To: BasePart - Exit point
Attributes:
- attr_cooldown: number (default: 1) - Cooldown between teleports per player
- attr_one_way: boolean (def... | 687 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Obby/checkpoint.luau | luau | .luau | --!strict
--[[
@class Checkpoint
Checkpoint system for obby games with persistence support.
Tags:
- "checkpoint" - Checkpoint marker, sets checkpoint when touched, acts as spawn point
- "spawn_point" - Optional explicit spawn location (overrides checkpoint position)
Attributes (checkpoint):
- attr_checkpoint_n... | 2,629 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Obby/cycling_kill_part.luau | luau | .luau | --!strict
--[[
@class CyclingKillPart
Kill part that cycles between active and inactive states.
Only damages players when visible/active.
Attributes:
- attr_active_time: number (default: 2) - Time the part is active (visible and deadly)
- attr_inactive_time: number (default: 2) - Time the part is inactive (hidde... | 765 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Obby/cycling_platform.luau | luau | .luau | --!strict
--[[
@class CyclingPlatform
Platform that cycles between visible and hidden states.
Attributes:
- attr_visible_time: number (default: 2) - Time the platform is visible
- attr_hidden_time: number (default: 2) - Time the platform is hidden
- attr_delay: number (default: 0) - Initial delay before starting... | 459 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Sound/ambient_sound.luau | luau | .luau | --!strict
--[[
@class AmbientSound
Plays an ambient looping sound.
Attributes:
- attr_sound_id: string (required) - Asset ID of the sound
- attr_volume: number (default: 0.5) - Sound volume
- attr_range: number (default: 50) - Maximum audible distance
]]
local RunService = game:GetService("RunService")
local A... | 522 |
dig1t/attrify | dig1t-attrify-b6329b0/src/Watchers/Sound/proximity_sound.luau | luau | .luau | --!strict
--[[
@class ProximitySound
Plays a sound when a player comes within range.
Attributes:
- attr_sound_id: string (required) - Asset ID of the sound
- attr_volume: number (default: 0.5) - Sound volume
- attr_range: number (default: 20) - Trigger distance
- attr_cooldown: number (default: 5) - Minimum tim... | 712 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.