repo stringclasses 341
values | file_path stringlengths 29 173 | language stringclasses 2
values | file_type stringclasses 4
values | code stringlengths 2 1.66M | tokens int64 2 598k |
|---|---|---|---|---|---|
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/RotatedRegion3/init.lua | luau | .lua | -- TAKEN FROM https://www.roblox.com/library/3686163417/Rotated-Region3-GJK
-- PACKAGE UPDATED SINCE MAY 02, 2020 12:15:45 PM
--[[
This is a Rotated Region3 Class that behaves much the same as the standard Region3 class expect that it allows
for both rotated regions and also a varying array of shapes.
API:
Constructo... | 2,345 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/abbreviate/src/commify.luau | luau | .luau | local function commify(self, number)
assert(type(number) == 'number', 'Attempt to commify a non-number value')
local formatted = tostring(number)
while true do
local newFormatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2')
formatted = newFormatted
if k == 0 then
break
end
end
return format... | 103 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/abbreviate/src/init.luau | luau | .luau | local DEFAULT_SUFFIX_TABLE = {
"k",
"M",
"B",
"T",
"Qd",
"Qn",
"Sx",
"Sp",
"O",
"N",
"De",
"Ud",
"DD",
"tdD",
"QnD",
"SxD",
"SpD",
"OcD",
"NvD",
"VgN",
"UvG",
"DvG",
"TvG",
"QtV",
"QnV",
"SeV",
"SpG",
"OvG",
"NvG",
"TgN",
"UtG",
"DtG",
"TsTg",
"QtTg",
"QnTg",
"SsTg",
"SpTg",
"OcTg"... | 413 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/abbreviate/src/jest.config.lua | luau | .lua | return {
testMatch = { "**/*.spec" },
}
| 12 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/abbreviate/src/numberToString.luau | luau | .luau | local function round(number, decimalPlaces, roundDown)
number = number * 10 ^ decimalPlaces
if roundDown then
return math.floor(number) / 10 ^ decimalPlaces
else
number = tonumber(string.format("%.14g", number))
-- cast to string and back to number to give some epsilon for floating point numbers
--[[ e.g.:
... | 568 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/abbreviate/src/numbersToSortedString.luau | luau | .luau | -- Credits to Coreccii for this method
local hexToBin = {
["0"] = "0000",
["1"] = "0001",
["2"] = "0010",
["3"] = "0011",
["4"] = "0100",
["5"] = "0101",
["6"] = "0110",
["7"] = "0111",
["8"] = "1000",
["9"] = "1001",
["A"] = "1010",
["B"] = "1011",
["C"] = "1100",
["D"] = "1101",
["E"] = "1110",
["F"] ... | 900 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/abbreviate/src/runTests.story.luau | luau | .luau | -- Disable ANSI colors from Jest
_G.NOCOLOR = true
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ServerScriptService = game:GetService("ServerScriptService")
local runCLI = require(ReplicatedStorage.DevPackages.Jest).runCLI
local processServiceExists, ProcessService = pcall(function()
return ... | 266 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/abbreviate/src/setSetting.luau | luau | .luau | local function setSetting(self, settingName, settingValue)
if not (settingName and settingValue ~= nil and type(settingName) == 'string') then
error('setSetting had invalid parameters.\nP1 - settingName: string\nP2 - settingValue: unknown', 2)
end
local realSetting = '_' .. settingName
if self[realSetting] ~= ni... | 173 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/abbreviate/src/stringToNumber.luau | luau | .luau | local function stringToNumber(self, str)
if not (str and type(str) == 'string') then
error('stringToNumber had invalid parameters.\nP1 - string: string', 2)
end
local totalMagnitude = 1
for key, suffix in pairs(self._suffixTable) do
str = string.gsub(str, suffix, function()
totalMagnitude = totalMagnitude ... | 176 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/flipper/src/BaseMotor.lua | luau | .lua | local RunService = game:GetService("RunService")
local Signal = require(script.Parent.Signal)
local noop = function() end
local BaseMotor = {}
BaseMotor.__index = BaseMotor
function BaseMotor.new()
return setmetatable({
_onStep = Signal.new(),
_onComplete = Signal.new()
}, BaseMotor)
end
function BaseMotor:o... | 223 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/flipper/src/GroupMotor.lua | luau | .lua | local BaseMotor = require(script.Parent.BaseMotor)
local SingleMotor = require(script.Parent.SingleMotor)
local isMotor = require(script.Parent.isMotor)
local GroupMotor = setmetatable({}, BaseMotor)
GroupMotor.__index = GroupMotor
local function toMotor(value)
if isMotor(value) then
return value
end
local val... | 530 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/flipper/src/Instant.lua | luau | .lua | local Instant = {}
Instant.__index = Instant
function Instant.new(targetValue)
return setmetatable({
_targetValue = targetValue
}, Instant)
end
function Instant:step()
return {
complete = true,
value = self._targetValue
}
end
return Instant | 61 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/flipper/src/Signal.lua | luau | .lua | local Connection = {}
Connection.__index = Connection
function Connection.new(signal, handler)
return setmetatable({
signal = signal,
connected = true,
_handler = handler
}, Connection)
end
function Connection:disconnect()
if self.connected then
self.connected = false
for index, connection in pairs(self... | 240 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/flipper/src/SingleMotor.lua | luau | .lua | local BaseMotor = require(script.Parent.BaseMotor)
local SingleMotor = setmetatable({}, BaseMotor)
SingleMotor.__index = SingleMotor
function SingleMotor.new(initialValue, shouldStartImplicitly)
assert(initialValue, "Missing argument #1: initialValue")
assert(typeof(initialValue) == "number", "initialValue must be ... | 287 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/flipper/src/init.lua | luau | .lua | local Flipper = {
SingleMotor = require(script.SingleMotor),
GroupMotor = require(script.GroupMotor),
Instant = require(script.Instant),
Spring = require(script.Spring),
isMotor = require(script.isMotor)
}
return Flipper | 50 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/flipper/src/isMotor.lua | luau | .lua | local function isMotor(value)
local motorType = tostring(value):match("^Motor%((.+)%)$")
if motorType then
return true, motorType
else
return false
end
end
return isMotor | 48 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/Collection.lua | luau | .lua | local Promise = require(script.Parent.Parent.Promise)
local t = require(script.Parent.Parent.t)
local Document = require(script.Parent.Document)
local stackSkipAssert = require(script.Parent.stackSkipAssert).stackSkipAssert
local getTime = require(script.Parent.getTime).getTime
local DOCUMENT_COOLDOWN = 7
local Colle... | 571 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/Document.lua | luau | .lua | local Promise = require(script.Parent.Parent.Promise)
local AccessLayer = require(script.Parent.Layers.AccessLayer)
local DocumentData = require(script.Parent.DocumentData)
local Error = require(script.Parent.Error)
local stackSkipAssert = require(script.Parent.stackSkipAssert).stackSkipAssert
local Document = {}
Docu... | 546 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/DocumentData.lua | luau | .lua | local DocumentData = {}
DocumentData.__index = DocumentData
-- TODO: Backups
function DocumentData.new(options)
return setmetatable({
_lockSession = options.lockSession;
_readOnlyData = options.readOnlyData;
_collection = options.collection;
_currentData = nil;
_dataLoaded = false;
_closed = false;
}, D... | 336 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/Error.lua | luau | .lua | local makeEnum = require(script.Parent.makeEnum).makeEnum
local getTime = require(script.Parent.getTime).getTime
local Error = {
Kind = makeEnum("Quicksave.Error.Kind", {
"DataStoreError",
"CouldNotAcquireLock",
"LockConsistencyViolation",
"SchemaValidationFailed"
}),
}
Error.__index = Error
function Error.... | 446 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/Layers/AccessLayer/LockSession.lua | luau | .lua | local MigrationLayer = require(script.Parent.Parent.MigrationLayer)
local Error = require(script.Parent.Parent.Parent.Error)
local Promise = require(script.Parent.Parent.Parent.Parent.Promise)
local getTime = require(script.Parent.Parent.Parent.getTime).getTime
local HttpService = game:GetService("HttpService")
local... | 1,093 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/Layers/AccessLayer/init.lua | luau | .lua | local LockSession = require(script.LockSession)
local MigrationLayer = require(script.Parent.MigrationLayer)
local AccessLayer = {}
function AccessLayer.acquireLockSession(collection, key, migrations)
local lockSession = LockSession.new(collection, key, migrations)
return lockSession:lock()
end
function AccessLay... | 86 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/Layers/DataLayer/LZW.lua | luau | .lua | local dictionary, length = {}, 0
for i = 32, 127 do
if i ~= 34 and i ~= 92 then
local c = string.char(i)
dictionary[c], dictionary[length] = length, c
length = length + 1
end
end
local escapemap = {}
for i = 1, 34 do
i = ({34, 92, 127})[i-31] or i
local c, e = string.char(i), string.char(i + 31)
escapemap[c... | 818 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/Layers/DataLayer/Schemes/compressed.lua | luau | .lua | local LZW = require(script.Parent.Parent.LZW)
return {
["compressed/1"] = {
pack = function(value)
return LZW.compress(value)
end;
unpack = function(value)
return LZW.decompress(value);
end;
}
}
| 59 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/Layers/DataLayer/Schemes/raw.lua | luau | .lua | return {
["raw/1"] = {
pack = function(value)
return value
end;
unpack = function(value)
return value;
end;
}
}
| 41 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/Layers/DataLayer/init.lua | luau | .lua | local RetryLayer = require(script.Parent.RetryLayer)
local HttpService = game:GetService("HttpService")
local RawSchemes = require(script.Schemes.raw)
local CompressedSchemes = require(script.Schemes.compressed)
local MINIMUM_LENGTH_TO_COMPRESS = 1000
local DataLayer = {
schemes = {
["raw/1"] = RawSchemes["raw/1... | 329 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/Layers/DataStoreLayer.lua | luau | .lua | local DataStoreService = require(script.Parent.Parent.Parent.MockDataStoreService)
local DataStoreLayer = {
_dataStores = {};
}
function DataStoreLayer._getDataStore(collectionName)
if DataStoreLayer._dataStores[collectionName] == nil then
DataStoreLayer._dataStores[collectionName] = DataStoreService:... | 146 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/Layers/MigrationLayer.lua | luau | .lua | local DataLayer = require(script.Parent.DataLayer)
local MigrationLayer = {}
function MigrationLayer._unpack(value, migrations)
value = value or {
generation = #migrations;
data = nil;
}
local data = value.data
local generation = value.generation
if generation < #migrations then
for i = generation + 1, #... | 216 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/Layers/RetryLayer.lua | luau | .lua | local ThrottleLayer = require(script.Parent.ThrottleLayer)
local Error = require(script.Parent.Parent.Error)
local RetryLayer = {}
function RetryLayer._retry(callback, ...)
local attempts = 0
while attempts < 5 do
attempts = attempts + 1
local ok, value = pcall(callback, ...)
if ok then
return value
e... | 216 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/Layers/ThrottleLayer.lua | luau | .lua | local DataStoreService = require(script.Parent.Parent.Parent.MockDataStoreService)
local RunService = game:GetService("RunService")
local DataStoreLayer = require(script.Parent.DataStoreLayer)
local METHOD_RESOURCE_MAP = {
GetAsync = Enum.DataStoreRequestType.GetAsync;
UpdateAsync = Enum.DataStoreRequestType.Update... | 431 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/getTime.lua | luau | .lua | return {
getTime = os.clock;
}
| 9 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/init.lua | luau | .lua | local t = require(script.Parent.t)
local Promise = require(script.Parent.Promise)
local Collection = require(script.Collection)
local Error = require(script.Error)
local Quicksave = {
t = t;
Promise = Promise;
Error = Error;
_collections = {};
}
function Quicksave.createCollection(name, options)
if Quicksave._c... | 151 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/makeEnum.lua | luau | .lua | local function makeEnum(enumName, members)
local enum = {}
for _, memberName in ipairs(members) do
enum[memberName] = memberName
end
return setmetatable(enum, {
__index = function(_, k)
error(string.format("%s is not in %s!", k, enumName), 2)
end,
__newindex = function()
error(string.format("Creatin... | 119 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/Quicksave/stackSkipAssert.lua | luau | .lua | local function stackSkipAssert(condition, text)
if not condition then
error(text, 3)
end
end
return {
stackSkipAssert = stackSkipAssert;
}
| 36 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/quicksave/src/t/init.lua | luau | .lua | -- t: a runtime typechecker for Roblox
-- regular lua compatibility
local typeof = typeof or type
local function primitive(typeName)
return function(value)
local valueType = typeof(value)
if valueType == typeName then
return true
else
return false, string.format("%s expected, got %s", typeName, valueType... | 6,453 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/react-redux/src/components/Context.lua | luau | .lua | --!strict
local React = require(script.Parent.Parent.Parent.react)
--OverHash deviation: local Redux = require(script.Parent.Parent.Parent.Redux)
local Subscription = require(script.Parent.Parent.utils.Subscription)
export type ReactReduxContextValue<SS = any, A = any> = {
store: any, --OverHash deviation: use any in... | 156 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/react-redux/src/components/Provider.lua | luau | .lua | --!strict
local React = require(script.Parent.Parent.Parent.react)
local ReactReduxContext = require(script.Parent.Context)
local Subscription = require(script.Parent.Parent.utils.Subscription)
-- OverHash deviation: local Redux = require(script.Parent.Parent.Parent.Redux)
export type ProviderProps<A = any, S = unkno... | 409 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/react-redux/src/hooks/useDispatch.lua | luau | .lua | --!strict
local React = require(script.Parent.Parent.Parent.react)
local ReactReduxContext = require(script.Parent.Parent.components.Context)
local useDefaultStore = require(script.Parent.useStore).useStore
local createStoreHook = require(script.Parent.useStore).createStoreHook
local exports = {}
--[[
* Hook factor... | 360 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/react-redux/src/hooks/useReduxContext.lua | luau | .lua | --!strict
local React = require(script.Parent.Parent.Parent.react)
local ReactReduxContext = require(script.Parent.Parent.components.Context)
local exports = {}
--[[
* A hook to access the value of the `ReactReduxContext`. This is a low-level
* hook that you should usually not need to call directly.
*
* @returns ... | 221 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/react-redux/src/hooks/useSelector.lua | luau | .lua | --!strict
local React = require(script.Parent.Parent.Parent.react)
local useDefaultReduxContext = require(script.Parent.useReduxContext).useReduxContext
local ReactReduxContext = require(script.Parent.Parent.components.Context)
local types = require(script.Parent.Parent.types)
local useSyncExternalStore = require(scri... | 822 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/react-redux/src/hooks/useStore.lua | luau | .lua | --!strict
local React = require(script.Parent.Parent.Parent.react)
-- OverHash deviation: local Redux = require(script.Parent.Parent.Parent.Redux)
local Context = require(script.Parent.Parent.components.Context)
local useDefaultReduxContext = require(script.Parent.useReduxContext).useReduxContext
local exports = {}
-... | 352 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/react-redux/src/types.lua | luau | .lua | --!strict
local React = require(script.Parent.Parent.react)
export type FixTypeLater = any
export type EqualityFn<T> = (a: T, b: T) -> boolean
export type ExtendedEqualityFn<T, P> = (a: T, b: T, c: P, d: P) -> boolean
export type DispatchProp<A = any> = {
dispatch: (any) -> (),
}
export type Matching<InjectedProps... | 358 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/react-redux/src/utils/Subscription.lua | luau | .lua | --!strict
-- OverHash deviation: local Redux = require(script.Parent.Parent.Parent.Redux)
local Batch = require(script.Parent.batch)
-- encapsulates the subscription logic for connecting a component to the redux store, as
-- well as nesting subscriptions of descendant components, so that we can ensure the
-- ancestor... | 883 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/react-redux/src/utils/batch.lua | luau | .lua | --!strict
local exports = {}
-- Default to a dummy "batch" implementation that just runs the callback
local function defaultNoopBatch(callback: () -> ())
callback()
end
local batch = defaultNoopBatch
-- Allow injecting another batching function later
exports.setBatch = function(newBatch: typeof(defaultNoopBatch))
... | 103 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/react-redux/src/utils/reactBatchedUpdates.roblox.lua | luau | .lua | local ReactRoblox = require(script.Parent.Parent.Parent["react-roblox"])
return ReactRoblox.unstable_batchedUpdates
| 26 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/react-redux/src/utils/shallowEqual.lua | luau | .lua | --!strict
-- OverHash deviation: use "LuauPolyfill" instead of "Collections"
local Collections = require(script.Parent.Parent.Parent.ReactLua.node_modules[".luau-aliases"]["@jsdotlua"].collections)
local Object = Collections.Object
local function shallowEqual(objA: any, objB: any)
if objA == objB then
return true... | 196 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/react-redux/src/utils/useSyncExternalStore.lua | luau | .lua | local _useSyncExternalStore = require(script.Parent.Parent.useSyncExternalStore.useSyncExternalStoreShimClient)
local _useSyncExternalStoreWithSelector =
require(script.Parent.Parent.useSyncExternalStore.useSyncExternalStoreWithSelector)
local exports = {}
exports.notInitialized = function()
error("uSES not initial... | 96 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/tableutil/init.lua | luau | .lua | -- Table Util
-- Stephen Leitnick
-- September 13, 2017
--[[
TableUtil.Copy(tbl: table): table
TableUtil.CopyShallow(tbl: table): table
TableUtil.Sync(tbl: table, template: table): void
TableUtil.FastRemove(tbl: table, index: number): void
TableUtil.FastRemoveFirstValue(tbl: table, value: any): (boolean, number)... | 2,028 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/virtualized-list/include/RuntimeLib.lua | luau | .lua | local Promise = require(script.Parent.Promise)
local RunService = game:GetService("RunService")
local OUTPUT_PREFIX = "roblox-ts: "
local NODE_MODULES = "node_modules"
local DEFAULT_SCOPE = "@rbxts"
local TS = {}
TS.Promise = Promise
local function isPlugin(context)
return RunService:IsStudio() and context:FindFi... | 1,372 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/virtualized-list/src/Components/ScrollView/ScrollContentViewNativeComponent.luau | luau | .luau | --[[
* Copyright (c) Roblox Corporation. All rights reserved.
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* Unless required by applicable law or agreed... | 386 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/virtualized-list/src/Components/ScrollView/ScrollViewNativeComponent.luau | luau | .luau | --[[
* Copyright (c) Roblox Corporation. All rights reserved.
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* Unless required by applicable law or agreed... | 1,594 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/virtualized-list/src/Components/View/View.luau | luau | .luau | -- ROBLOX note: no upstream
--[[
* Copyright (c) Roblox Corporation. All rights reserved.
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* Unless required... | 506 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/virtualized-list/src/Lists/AnimatedFlatList.luau | luau | .luau | --[[
* Copyright (c) Roblox Corporation. All rights reserved.
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* Unless required by applicable law or agreed... | 456 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/virtualized-list/src/Lists/Hooks/init.luau | luau | .luau | --[[
* Copyright (c) Roblox Corporation. All rights reserved.
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* Unless required by applicable law or agreed... | 153 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/virtualized-list/src/Lists/Hooks/useFocusNavigationScrolling.luau | luau | .luau | --[[
* Copyright (c) Roblox Corporation. All rights reserved.
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* Unless required by applicable law or agreed... | 904 |
OverHash/Roblox-TS-Libraries | OverHash-Roblox-TS-Libraries-8a3ce46/virtualized-list/src/init.luau | luau | .luau | -- ROBLOX note: no upstream
--[[
* Copyright (c) Roblox Corporation. All rights reserved.
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* Unless required... | 342 |
AlexanderLindholt/TweenPlus | AlexanderLindholt-TweenPlus-a37d495/source/Client.luau | luau | .luau | --!optimize 2
--!native
-- Services.
local CollectionService = game:GetService("CollectionService")
local RunService = game:GetService("RunService")
-- Attempt to find the plugin object.
local plugin = script:FindFirstAncestorOfClass("Plugin")
-- Network packets.
local packets
if not plugin and RunService:IsRunning(... | 3,321 |
AlexanderLindholt/TweenPlus | AlexanderLindholt-TweenPlus-a37d495/source/Data/Defaults.luau | luau | .luau | --!optimize 2
-- Services.
local CollectionService = game:GetService("CollectionService")
-- Attempt to find the plugin object.
local plugin = script:FindFirstAncestorOfClass("Plugin")
-- Default defaults.
local defaults = {
Time = 1,
EasingStyle = "Linear",
EasingDirection = "In",
DelayTime = 0,
Reverses =... | 408 |
AlexanderLindholt/TweenPlus | AlexanderLindholt-TweenPlus-a37d495/source/Data/Types.luau | luau | .luau | -- Signal types from Signal+.
export type Signal<Parameters...> = {
Connect: typeof(
-- Connects a function.
function(signal: Signal<Parameters...>, callback: (Parameters...) -> ()): Connection end
),
Once: typeof(
-- Connects a function, then auto-disconnects after the first call.
function(signal: Signal<Pa... | 485 |
AlexanderLindholt/TweenPlus | AlexanderLindholt-TweenPlus-a37d495/source/Server.luau | luau | .luau | --!optimize 2
--!native
-- Services.
local CollectionService = game:GetService("CollectionService")
local ServerStorage = game:GetService("ServerStorage")
local RunService = game:GetService("RunService")
local Players = game:GetService("Players")
-- Get and verify network packets.
local packets = CollectionService:Ge... | 3,754 |
AlexanderLindholt/TweenPlus | AlexanderLindholt-TweenPlus-a37d495/source/Utilities/EasingFunctions.luau | luau | .luau | --!optimize 2
--!native
-- Services.
local CollectionService = game:GetService("CollectionService")
-- Elastic constants.
local elasticInP = 0.3
local elasticInA = 1.0
local elasticInS = elasticInP*0.25
local elasticOutP = 0.3
local elasticOutA = 1.0
local elasticOutS = elasticOutP*0.25
local elasticInOutP = 0.45
loc... | 2,785 |
AlexanderLindholt/TweenPlus | AlexanderLindholt-TweenPlus-a37d495/source/Utilities/UpdateFunctions.luau | luau | .luau | --!optimize 2
-- Value functions.
local valueFunctions = require(script.Parent.ValueFunctions)
local normalValueFunctions = valueFunctions.Normal
local normalBezierValueFunctions = normalValueFunctions.Bezier
local advancedValueFunctions = valueFunctions.Advanced
-- Property validation function.
local function check... | 811 |
AlexanderLindholt/TweenPlus | AlexanderLindholt-TweenPlus-a37d495/source/Utilities/ValueFunctions.luau | luau | .luau | --!optimize 2
--!native
local function numberLerp(a, b)
local difference = b - a
return function(alpha)
return a + difference*alpha
end
end
local function normalize(x, y, z, w)
local m = math.sqrt(x*x + y*y + z*z + w*w)
if m == 0 then return 0, 0, 0, 1 end
m = 1/m
return x*m, y*m, z*m, w*m
end
local function... | 7,610 |
sircfenner/AutoImport | sircfenner-AutoImport-eb2bbf3/.config.luau | luau | .luau | return {
luau = {
languagemode = "strict",
},
}
| 19 |
sircfenner/AutoImport | sircfenner-AutoImport-eb2bbf3/src/ModulesWatcher.luau | luau | .luau | local targetRoots: { Instance } = {
game:GetService("Workspace"),
game:GetService("ReplicatedFirst"),
game:GetService("ReplicatedStorage"),
game:GetService("ServerScriptService"),
game:GetService("ServerStorage"),
game:GetService("StarterGui"),
game:GetService("StarterPack"),
game:GetService("StarterPlayer"),
}... | 727 |
Asiandayboy/InventoryMaker | Asiandayboy-InventoryMaker-abe5667/src/client_modules/IMC/IMConstants.luau | luau | .luau | local IMConstants = {
SLOT_NAME_PREFIX = "SLOT_",
HOVER_NAME_PREFIX = "HOVER_PROMPT_",
FILLED_GUI_NAME = "FILLED",
DUMMY_FILLED_GUI_NAME = "D_FILLED",
GRID_LAYOUT_NAME = "IMGridLayout",
CONTAINER_ATTRIB... | 203 |
Asiandayboy/InventoryMaker | Asiandayboy-InventoryMaker-abe5667/src/client_modules/IMC/IMContainer.luau | luau | .luau | --!strict
local BIT_FLAGS = {
CLOSED = 0b1,
NO_FILTERING = 0b10,
NO_DRAGGING = 0b100,
NO_STACKING = 0b1000,
HOTBAR_UNTOGGLED_HOVER = 0b10000,
HOTBAR_COLLAPSE = 0b100000,
HOTBAR_FILL_FIRST = 0b1000000,
NO_AUTO_EQUIP = 0b10000000,
NO_EQUIPPED_STATE = 0b100000000,
NO_SO... | 7,717 |
Asiandayboy/InventoryMaker | Asiandayboy-InventoryMaker-abe5667/src/client_modules/IMC/IMDraggableUI.luau | luau | .luau | --!strict
--[[
DraggableUI forked from v1.3.3 (used in InventoryMaker v1.0.0) 5/17/2025
------------------------------------------------------------------------
Forked Version Updates:
--------------
v1.3.5 5/18/25
- set z indes on input began instead of when drag initially starts
v1.3.4 5/17/25
- add _c... | 1,999 |
Asiandayboy/InventoryMaker | Asiandayboy-InventoryMaker-abe5667/src/client_modules/IMC/IMFilter.luau | luau | .luau | --!strict
local IMFilter = {}
local IMContainer = require(script.Parent.IMContainer)
local IMUserType = require(script.Parent.IMUserType)
export type CustomFilterFunc = (slotIndex: number, item: IMUserType.USER_ITEM_TYPE, containerIndex: number) -> boolean
local function searchFilter(
container: IMContainer._Con... | 624 |
Asiandayboy/InventoryMaker | Asiandayboy-InventoryMaker-abe5667/src/client_modules/IMC/IMInput.luau | luau | .luau | --!strict
local UIS = game:GetService("UserInputService")
type ActionValidator = (input: InputObject) -> boolean
type ActionValidator2 = (input: InputObject | Enum.UserInputState) -> boolean
local IMInput = {
HOVER_PROMPT_START = 1,
HOVER_PROMPT_END = 2,
SPLIT = 3,
CONTEXT_MENU_OPEN = 5,
MULTI_CONTEXT_BOUNDS_CHE... | 1,097 |
Asiandayboy/InventoryMaker | Asiandayboy-InventoryMaker-abe5667/src/client_modules/IMC/IMStaticContainer.luau | luau | .luau | --!strict
local StaticContainer = {}
local Players = game:GetService("Players")
local player = Players.LocalPlayer::Player
local playerGui = player.PlayerGui
local Constants = require(script.Parent.IMConstants)
export type ActivatedCallbackStatic = (item: any, filledGui: GuiObject, containerIndex: number) -> ()
type... | 3,060 |
Asiandayboy/InventoryMaker | Asiandayboy-InventoryMaker-abe5667/src/client_modules/IMC/IMUserType.luau | luau | .luau | local IMUserType = {}
-- This is for if you want better typechecking for your items (ITEM_TYPE)
-- Define the schema of your type here. This type should represent what each item looks like. You can store anything you want
-- The current type is just used as an example
export type USER_ITEM_TYPE = { -- DON'T CHANGE T... | 141 |
Asiandayboy/InventoryMaker | Asiandayboy-InventoryMaker-abe5667/src/client_modules/IMC/IMUtility.luau | luau | .luau | --!strict
local Utility = {}
local GuiService = game:GetService("GuiService")
export type Table = { [any]: any }
function Utility.GetGuiInsetY(guiInsetIgnored: boolean): number
return guiInsetIgnored and GuiService:GetGuiInset().Y or 0
end
function Utility.DeepCopyTable(t: Table)
local copy = {}
for k,v in pa... | 305 |
michaeldougal/AnimNation | michaeldougal-AnimNation-032348f/AnimNation/AnimChain.luau | luau | .luau | local Spring = require(script.Parent:WaitForChild("Spring"))
type Spring = Spring.Spring
export type AnimChain = {
-- Metatable members
__index: AnimChain,
-- Public members
new: (animators: { Spring | Tween }?) -> AnimChain,
AndThen: (AnimChain, callback: () -> ()) -> AnimChain,
Await: (AnimChain) -> AnimCh... | 1,175 |
michaeldougal/AnimNation | michaeldougal-AnimNation-032348f/AnimNation/Spline.luau | luau | .luau | --[[ File Info
Author(s): TactBacon, ChiefWildin (feat. eliphant)
--]]
-- Types
export type Spline = {
-- Metatable members
__index: (self: Spline, key: string) -> any,
__newindex: (self: Spline, key: string, value: any) -> any,
-- Public members
new: (controlPoints: { CFrame }) -> Spline,
Destroy: (self: S... | 3,337 |
Infinite-Store/Infinite-Store | Infinite-Store-Infinite-Store-87d0e48/plugins/CamMaker.plugin.luau | luau | .luau | if not isfolder("CAMS") then
makefolder("CAMS")
end
local Plugin = {
PluginName = "Cam Maker v1.2",
PluginDescription = "CamMaker but better!",
Commands = {
makecam = {
ListName = "makecam / mc [Name]",
Description = "Creates a camera to view.",
Aliases = { "mc" },
Function = function(args, speaker)
... | 784 |
Infinite-Store/Infinite-Store | Infinite-Store-Infinite-Store-87d0e48/plugins/FakeChat.plugin.luau | luau | .luau | local Plugin = {
["PluginName"] = "Fake Chat",
["PluginDescription"] = "Be able to chat as anyone.",
["Commands"] = {
["fakechat"] = {
["ListName"] = "fakechat / fchat [plr] [msg]",
["Description"] = "Chat an string as the specified player.",
["Aliases"] = { "fchat" },
["Function"] = function(args, spe... | 189 |
Infinite-Store/Infinite-Store | Infinite-Store-Infinite-Store-87d0e48/plugins/FreeFall.plugin.luau | luau | .luau | local Players = game:GetService("Players")
return {
["PluginName"] = "Free Fall",
["PluginDescription"] = "Scripted by NoobSploit#0001",
["Commands"] = {
["freefall"] = {
["ListName"] = "freefall [height]",
["Description"] = "FreeFalled",
["Aliases"] = {},
["Function"] = function(args, speaker)
if ... | 312 |
Infinite-Store/Infinite-Store | Infinite-Store-Infinite-Store-87d0e48/plugins/Freecam2.plugin.luau | luau | .luau | local allowspeedmove = true
wait(1)
local c = workspace.CurrentCamera
local player = game.Players.LocalPlayer
local userInput = game:GetService("UserInputService")
local rs = game:GetService("RunService")
local starterPlayer = game:GetService("StarterPlayer")
local selected = false
local speed = 60
local lastUpdate =... | 941 |
Infinite-Store/Infinite-Store | Infinite-Store-Infinite-Store-87d0e48/plugins/GotoFolder.plugin.luau | luau | .luau | return {
["PluginName"] = "goto folder",
["PluginDescription"] = "Go to a folder",
["Commands"] = {
["gotofolder"] = {
["ListName"] = "gotofolder",
["Description"] = "Made By D7M",
["Aliases"] = {},
["Function"] = function(args, speaker)
for i, v in pairs(workspace:GetDescendants()) do
if v.Na... | 172 |
Infinite-Store/Infinite-Store | Infinite-Store-Infinite-Store-87d0e48/plugins/Keybinds.plugin.luau | luau | .luau | if not isfile("keybinds.keybinds") then
keybinds = {}
else
keybinds = game:GetService("HttpService"):JSONDecode(readfile("keybinds.keybinds"))
end
local event
event = game:GetService("Players").LocalPlayer:GetMouse().KeyDown:Connect(function(input)
for i, v in pairs(keybinds) do
if input:lower() == v.KEY and v.TO... | 1,076 |
Infinite-Store/Infinite-Store | Infinite-Store-Infinite-Store-87d0e48/plugins/MinionMeme.plugin.luau | luau | .luau | return {
["PluginName"] = "Minion Meme",
["PluginDescription"] = "this is funny (Empire#4946)",
["Commands"] = {
["minionmeme"] = {
["ListName"] = "minionmeme / minionm / minm",
["Description"] = "Opens up a GUI that is minion memes",
["Aliases"] = { "minionm", "minm" },
["Function"] = function(args, s... | 1,439 |
Infinite-Store/Infinite-Store | Infinite-Store-Infinite-Store-87d0e48/plugins/Orbit.plugin.luau | luau | .luau | local PluginAPI = {}
function PluginAPI:CreatePlugin(name, description)
local Functions = {}
local Plugin = {
["PluginName"] = name,
["PluginDescription"] = description,
["Commands"] = {},
}
function Functions:AddCommand(Name, ListName, Description, Aliases, Callback)
Plugin["Commands"][Name] = {
["ListN... | 1,100 |
Infinite-Store/Infinite-Store | Infinite-Store-Infinite-Store-87d0e48/plugins/SaveLoadTools.plugin.luau | luau | .luau | return {
["PluginName"] = "Save/Load Tools",
["PluginDescription"] = "Scripted by Empire#4946!",
["Commands"] = {
["savetools"] = {
["ListName"] = "savetools / savet",
["Description"] = "Saves Tools and puts them into your Player",
["Aliases"] = { "savet" },
["Function"] = function(args, speaker)
f... | 257 |
Infinite-Store/Infinite-Store | Infinite-Store-Infinite-Store-87d0e48/plugins/ShaderMod.plugin.luau | luau | .luau | -- Instances --------------------------------------
local Blur = Instance.new("BlurEffect")
Blur.Name = "Blur [Shader Mod]"
Blur.Parent = game.Lighting
Blur.Size = 4
Blur.Enabled = false
local DepthOfField = Instance.new("DepthOfFieldEffect")
DepthOfField.Name = "Depth Of Field [Shader Mod]"
DepthOfField.Parent = gam... | 330 |
Infinite-Store/Infinite-Store | Infinite-Store-Infinite-Store-87d0e48/plugins/ShiftToSprint.plugin.luau | luau | .luau | local lplr = game:GetService("Players").LocalPlayer
normalSpeed = lplr.Character.Humanoid.WalkSpeed
speed = 30
local Plugin = {
["PluginName"] = "Shift To Sprint",
["PluginDescription"] = "A plugin to be able to shift to sprint at the speed you want",
["Commands"] = {
["shifttosprint"] = {
["ListName"] = "shi... | 447 |
Infinite-Store/Infinite-Store | Infinite-Store-Infinite-Store-87d0e48/plugins/antiflingunfling.plugin.luau | luau | .luau | return {
["PluginName"] = "antiflingunfling",
["PluginDescription"] = "Stops you from getting flinged from the unfling cmd",
["Commands"] = {
["antiflingunfling"] = {
["ListName"] = "antiflingunfling / afu",
["Description"] = "Stops you from getting flinged from the unfling cmd",
["Aliases"] = { "afu" },
... | 154 |
Infinite-Store/Infinite-Store | Infinite-Store-Infinite-Store-87d0e48/plugins/antikill.plugin.luau | luau | .luau | local AntiKill = false
local RunService = game:GetService("RunService")
local Me = game:GetService("Players").LocalPlayer
local Char = Me.Character
local BPack = Me.Backpack
local Humanoid = Char:FindFirstChildWhichIsA("Humanoid")
local ToolTable = BPack:GetChildren()
RunService.Stepped:Connect(function()
local Tool =... | 736 |
Infinite-Store/Infinite-Store | Infinite-Store-Infinite-Store-87d0e48/plugins/beyblade.plugin.luau | luau | .luau | local Plugin = {
["PluginName"] = "Beyblade",
["PluginDescription"] = "Turns you into a beyblade.",
["Commands"] = {
["beyblade"] = {
["ListName"] = "beyblade",
["Description"] = "Makes you a beyblade!",
["Aliases"] = {},
["Function"] = function(args, speaker)
execCmd("walkspeed 100", speaker)
... | 120 |
Infinite-Store/Infinite-Store | Infinite-Store-Infinite-Store-87d0e48/plugins/bighead.plugin.luau | luau | .luau | local Plugin = {
["PluginName"] = "Big Head",
["PluginDescription"] = "May you do a ton of trolling",
["Commands"] = {
["bighead"] = {
["ListName"] = "bighead / biggest / bigger / big",
["Description"] = "Makes you head big",
["Aliases"] = { "biggest", "bigger", "big" },
["Function"] = function(args, s... | 243 |
Infinite-Store/Infinite-Store | Infinite-Store-Infinite-Store-87d0e48/plugins/blanksay.plugin.luau | luau | .luau | local Plugin = {
["PluginName"] = "Blank Say",
["PluginDescription"] = "Send blank messages.",
["Commands"] = {
["blanksay"] = {
["ListName"] = "blanksay / blankchat",
["Description"] = "Send a blank message in chat",
["Aliases"] = { "blankchat" },
["Function"] = function(args, speaker)
game:GetSer... | 133 |
Infinite-Store/Infinite-Store | Infinite-Store-Infinite-Store-87d0e48/plugins/blockself.plugin.luau | luau | .luau | return {
["PluginName"] = "BlockSelf",
["PluginDescription"] = "Makes you blocky and fat.",
["Commands"] = {
["blockself"] = {
["ListName"] = "blockself [delay]",
["Description"] = "Makes you blocky and fat.",
["Aliases"] = {},
["Function"] = function(args, speaker)
speaker.Character.CharacterMesh:... | 196 |
Infinite-Store/Infinite-Store | Infinite-Store-Infinite-Store-87d0e48/plugins/btools2.plugin.luau | luau | .luau | local Plugin = {
["PluginName"] = "Cyclically's Custom Btools",
["PluginDescription"] = "Just better btools",
["Commands"] = {
["cycbtools"] = {
["ListName"] = "cycbtools / btools2",
["Description"] = "Cyclically's Custom Btools",
["Aliases"] = { "btools2" },
["Function"] = function(args, speaker)
... | 791 |
Infinite-Store/Infinite-Store | Infinite-Store-Infinite-Store-87d0e48/plugins/builderchat.plugin.luau | luau | .luau | local Plugin = {
["PluginName"] = "Builderman Chat",
["PluginDescription"] = "Pretend to be Builderman (Modded by LuaLighter)",
["Commands"] = {
["buildchat"] = {
["ListName"] = "buildchat / bchat [your msg] [builderman msg]",
["Description"] = "Chat as Builerman",
["Aliases"] = { "bchat" },
["Function... | 178 |
Infinite-Store/Infinite-Store | Infinite-Store-Infinite-Store-87d0e48/plugins/clearchat.plugin.luau | luau | .luau | local Plugin = {
["PluginName"] = "Clear Chat",
["PluginDescription"] = "you may be warned",
["Commands"] = {
["clearchat"] = {
["ListName"] = "clearchat / clchat",
["Description"] = "deez nuts HA GOTTEM",
["Aliases"] = { "clchat" },
["Function"] = function(args, speaker)
local ReplicatedStorage = ... | 2,530 |
Infinite-Store/Infinite-Store | Infinite-Store-Infinite-Store-87d0e48/plugins/climb.plugin.luau | luau | .luau | climbing = false
local Plugin = {
["PluginName"] = "Climb",
["PluginDescription"] = "Make you climb",
["Commands"] = {
["climb"] = {
["ListName"] = "climb",
["Description"] = "monke",
["Aliases"] = {},
["Function"] = function(args, speaker)
if climbing == false then
climbing = true
local ... | 333 |
Infinite-Store/Infinite-Store | Infinite-Store-Infinite-Store-87d0e48/plugins/crash.plugin.luau | luau | .luau | local Plugin = {
["PluginName"] = "Crasher",
["PluginDescription"] = "does something",
["Commands"] = {
["crash"] = {
["ListName"] = "crash",
["Description"] = "fucks up ur roblox game",
["Aliases"] = {},
["Function"] = function(args, speaker)
function build()
local part = Instance.new("Part")... | 142 |
Infinite-Store/Infinite-Store | Infinite-Store-Infinite-Store-87d0e48/plugins/ctrl_lock.plugin.luau | luau | .luau | local Plugin = {
["PluginName"] = "Ctrl Lock",
["PluginDescription"] = "Bind Shift Lock to Left Control",
["Commands"] = {
["controllock"] = {
["ListName"] = "controllock / ctrllock",
["Description"] = "Bind Shift Lock to Left Control",
["Aliases"] = { "ctrllock" },
["Function"] = function(args, speake... | 233 |
Infinite-Store/Infinite-Store | Infinite-Store-Infinite-Store-87d0e48/plugins/displayNameRemover.plugin.luau | luau | .luau | local Plugin = {
["PluginName"] = "displayNameRemover",
["PluginDescription"] = "removes those pesky display names",
["Commands"] = {
["removedisplay"] = {
["ListName"] = "removedisplay / removedisplaynames / nodisplayname / ndn",
["Description"] = "this removes display names",
["Aliases"] = { "removedisp... | 347 |
Infinite-Store/Infinite-Store | Infinite-Store-Infinite-Store-87d0e48/plugins/enablebackpack.plugin.luau | luau | .luau | local Plugin = {
["PluginName"] = "Enable Backpack",
["PluginDescription"] = "Enables backpack",
["Commands"] = {
["enablebackpack"] = {
["ListName"] = "enablebackpack",
["Description"] = "Enables backpack",
["Aliases"] = {},
["Function"] = function(args, speaker)
mouse = game.Players.LocalPlayer:G... | 183 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.