messages listlengths 1 1 |
|---|
[
{
"role": "assistant",
"content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nreturn DataTypeDefinition.new(\"UDim\", {\n\tread = function(stream)\n\t\treturn UDim.new(stream:readf32(), stream:readi32())\n\tend,\n\tw... |
[
{
"role": "assistant",
"content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nreturn DataTypeDefinition.new(\"UDim2\", {\n\tread = function(stream)\n\t\treturn UDim2.new(stream:readf32(), stream:readi32(), stream:rea... |
[
{
"role": "assistant",
"content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nreturn DataTypeDefinition.never(\"ValueCurveKey\")\n"
}
] |
[
{
"role": "assistant",
"content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nreturn DataTypeDefinition.new(\"Vector2\", {\n\tread = function(stream)\n\t\tlocal x = stream:readf32()\n\t\tlocal y = stream:readf32()\n\... |
[
{
"role": "assistant",
"content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nreturn DataTypeDefinition.new(\"Vector2int16\", {\n\tread = function(stream)\n\t\tlocal x = stream:readi16()\n\t\tlocal y = stream:readi16... |
[
{
"role": "assistant",
"content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nreturn DataTypeDefinition.new(\"Vector3\", {\n\tread = function(stream)\n\t\tlocal x = stream:readf32()\n\t\tlocal y = stream:readf32()\n\... |
[
{
"role": "assistant",
"content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nreturn DataTypeDefinition.new(\"Vector3int16\", {\n\tread = function(stream)\n\t\tlocal x = stream:readi16()\n\t\tlocal y = stream:readi16... |
[
{
"role": "assistant",
"content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nreturn DataTypeDefinition.new(\"vector\", {\n\tread = function(stream)\n\t\tlocal x = stream:readf32()\n\t\tlocal y = stream:readf32()\n\t... |
[
{
"role": "assistant",
"content": "local userdataRoot = script:FindFirstAncestor(\"Userdata\")\nlocal UserdataDefinition = require(userdataRoot.UserdataDefinition)\n\nreturn UserdataDefinition.new(\"deduplication-pointer\", function(index: number)\n\treturn { index = index }\nend)\n"
}
] |
[
{
"role": "assistant",
"content": "local userdataRoot = script:FindFirstAncestor(\"Userdata\")\nlocal UserdataDefinition = require(userdataRoot.UserdataDefinition)\n\nreturn UserdataDefinition.new(\"instance-pointer\", function(index: number)\n\treturn { index = index }\nend)\n"
}
] |
[
{
"role": "assistant",
"content": "local userdataRoot = script:FindFirstAncestor(\"Userdata\")\nlocal UserdataDefinition = require(userdataRoot.UserdataDefinition)\n\nreturn UserdataDefinition.new(\"userdefined\", function(kind: string, b: buffer)\n\treturn {\n\t\tkind = kind,\n\t\tb = b,\n\t}\nend)\n"
}
... |
[
{
"role": "assistant",
"content": "return {\n\tUserdefined = require(script.Userdefined),\n\tInstancePointer = require(script.InstancePointer),\n\tDeduplicationPointer = require(script.DeduplicationPointer),\n}\n"
}
] |
[
{
"role": "assistant",
"content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nlocal userdataRoot = script:FindFirstAncestor(\"Userdata\")\nlocal UserdataDefinitions = require(userdataRoot.Definitions)\nlocal userdata... |
[
{
"role": "assistant",
"content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nlocal userdataRoot = script:FindFirstAncestor(\"Userdata\")\nlocal UserdataDefinitions = require(userdataRoot.Definitions)\nlocal userdata... |
[
{
"role": "assistant",
"content": "local dataTypesRoot = script:FindFirstAncestor(\"DataTypes\")\nlocal DataTypeDefinition = require(dataTypesRoot.DataTypeDefinition)\n\nlocal userdataRoot = script:FindFirstAncestor(\"Userdata\")\nlocal UserdataDefinitions = require(userdataRoot.Definitions)\nlocal userdata... |
[
{
"role": "assistant",
"content": "local SUB_TYPE_OF_KEY = \"_$_$_bufferize_typeof\"\n\nlocal UserdataDefinitionStatic = {}\n\nlocal UserdataDefinitionClass = {}\nUserdataDefinitionClass.__index = UserdataDefinitionClass\nUserdataDefinitionClass.ClassName = \"UserdataDefinition\"\n\ntype userdata<T> = {\n\t... |
[
{
"role": "assistant",
"content": "local bufferizeRoot = script.Parent.Parent\nlocal CargoSemver = require(bufferizeRoot.Parent.CargoSemver)\n\nlocal TypeIds = {}\n\nlocal registeredArr = {}\nlocal function increment(semver: string)\n\tlocal registered = {\n\t\tindex = #registeredArr + 1,\n\t\tsemver = semv... |
[
{
"role": "assistant",
"content": "export type Supported = nil\n\t| boolean\n\t| number\n\t| string\n\t| buffer\n\t| { any }\n\t| { [any]: any }\n\t| Axes\n\t| BrickColor\n\t| CFrame\n\t| Color3\n\t| ColorSequence\n\t| ColorSequenceKeypoint\n\t| Enum\n\t| EnumItem\n\t| Enums\n\t| Faces\n\t| FloatCurveKey\n\... |
[
{
"role": "assistant",
"content": "local TypeUnions = require(script.TypeUnions)\nlocal DataTypePacker = require(script.DataTypePacker)\nlocal UserdataDefinitions = require(script.Standalone.Userdata.Definitions)\n\nexport type Supported = TypeUnions.Supported\nexport type Overridable = TypeUnions.Overridab... |
[
{
"role": "assistant",
"content": "local packagesRoot = script.Parent.Parent\nlocal CargoSemver = require(packagesRoot.CargoSemver)\n\nlocal Wally = require(script.Parent.Wally)\nlocal DataTypes = require(script.Parent.DataTypes)\nlocal BufferStream = require(script.Parent.BufferStream)\n\nexport type Suppo... |
[
{
"role": "assistant",
"content": "local bufferizeRoot = script.Parent.Parent\nlocal DataTypes = require(bufferizeRoot.DataTypes)\nlocal TableHelper = require(bufferizeRoot.DataTypes.Helpers.TableHelper)\nlocal pointerUserdata = DataTypes.Userdata.DeduplicationPointer\n\nlocal Deduplicator = {}\n\nfunction ... |
[
{
"role": "assistant",
"content": "local ReflectionService = game:GetService(\"ReflectionService\") :: ReflectionService\n\nlocal DataTypes = require(script.Parent.Parent.DataTypes)\nlocal pointerUserdata = DataTypes.Userdata.InstancePointer\n\nlocal InstanceSerializer = {}\n\nlocal function shouldSerialize... |
[
{
"role": "assistant",
"content": "local Encoder = require(script.Encoder)\nlocal BufferStream = require(script.BufferStream)\n\nlocal Deduplicator = require(script.Serializers.Deduplicator)\nlocal InstanceSerializer = require(script.Serializers.InstanceSerializer)\n\nexport type Encoder = Encoder.Encoder\n... |
[
{
"role": "assistant",
"content": "--!strict\n\n--[=[\n\t@class GravityCamera\n\n\tThis module acts as a typed interface for client-sided control of the modifications made to the camera controller.\n]=]\n\nlocal Players = game:GetService(\"Players\")\n\n-- stylua: ignore\nlocal playerModuleObject = require(... |
[
{
"role": "assistant",
"content": "--!strict\n\nlocal Players = game:GetService(\"Players\") :: Players\nlocal RunService = game:GetService(\"RunService\") :: RunService\nlocal TweenService = game:GetService(\"TweenService\") :: TweenService\n\nlocal TypedRemote = require(game.ReplicatedStorage.SharedPackag... |
[
{
"role": "assistant",
"content": "--!strict\n\nlocal Players = game:GetService(\"Players\")\nlocal RunService = game:GetService(\"RunService\")\nlocal ReplicatedStorage = game:GetService(\"ReplicatedStorage\")\n\nlocal SharedPackages = ReplicatedStorage.SharedPackages\nlocal Trove = require(SharedPackages.... |
[
{
"role": "assistant",
"content": "--!strict\n\nlocal Players = game:GetService(\"Players\")\nlocal RunService = game:GetService(\"RunService\")\nlocal ReplicatedStorage = game:GetService(\"ReplicatedStorage\")\n\nlocal SharedPackages = ReplicatedStorage.SharedPackages\nlocal RaycastHelper = require(SharedP... |
[
{
"role": "assistant",
"content": "--!strict\n\nlocal ReplicatedStorage = game:GetService(\"ReplicatedStorage\")\n\nlocal SharedPackages = ReplicatedStorage.SharedPackages\nlocal CharacterAnimate = require(SharedPackages.CharacterAnimate)\n\nlocal animate = script.Parent\nlocal character = animate.Parent\nl... |
[
{
"role": "assistant",
"content": "--!strict\n\nlocal Players = game:GetService(\"Players\")\nlocal ReplicatedStorage = game:GetService(\"ReplicatedStorage\")\n\nlocal SharedPackages = ReplicatedStorage.SharedPackages\nlocal CharacterSounds = require(SharedPackages.CharacterSounds)\n\nlocal module = {}\n\n-... |
[
{
"role": "assistant",
"content": "--!strict\n\nlocal StarterPlayer = game:GetService(\"StarterPlayer\")\nlocal ServerScriptService = game:GetService(\"ServerScriptService\")\nlocal StarterPlayerScripts = StarterPlayer:WaitForChild(\"StarterPlayerScripts\")\nlocal StarterCharacterScripts = StarterPlayer:Wai... |
[
{
"role": "assistant",
"content": "local Players = game:GetService(\"Players\")\nlocal RunService = game:GetService(\"RunService\")\nlocal RBXConnectionManager = {}\nRBXConnectionManager.__index = RBXConnectionManager\n\n-- Constructor --\nfunction RBXConnectionManager.new(monitoring_checker_interval: numbe... |
[
{
"role": "assistant",
"content": "\n--[=[\n\tHost\n\tA sample script on how you would\n\trun a shader.\n]=]\n\n--!native\n\n-- // Dependencies\nlocal Client = game.Players.LocalPlayer\nlocal RbxShader = require(game.ReplicatedStorage.RbxShader)\n\n-- // Configurations\nlocal CONFIGURATIONS = {\n\tInterlace... |
[
{
"role": "assistant",
"content": "\n--[=[\n\tBasicVoxelTunnel\n\tShader by @Miojo on https://www.shadertoy.com/view/mt2cWm\n\tPorted to Luau — ran by my engine — `RbxShader`.\n\t\n\t( Original comments are preserved. )\n]=]\n\n--!native\n\nlocal g = require(game.ReplicatedStorage.RbxShader.GraphicsMathLib)... |
[
{
"role": "assistant",
"content": "\n--[=[\n\tCosmic\n\tShader by @Xor on https://www.shadertoy.com/view/msjXRK\n\tPorted to Luau — ran by my engine — `RbxShader`.\n\t\n\t( Original comments are preserved. )\n]=]\n\n--!native\n\nlocal g = require(game.ReplicatedStorage.RbxShader.GraphicsMathLib)\nlocal vec3... |
[
{
"role": "assistant",
"content": "\n--[=[\n\tCurrents\n\tShader by @s23b on https://www.shadertoy.com/view/MsG3DK\n\tPorted to Luau — ran by my engine — `RbxShader`.\n\t\n\t( Original comments are preserved. )\n]=]\n\n--!native\n\nlocal g = require(game.ReplicatedStorage.RbxShader.GraphicsMathLib)\nlocal v... |
[
{
"role": "assistant",
"content": "\n--[=[\n\tGravitySucks\n\tShader by @mrange on https://www.shadertoy.com/view/4cyXWw\n\tPorted to Luau — ran by my engine — `RbxShader`.\n\t\n\t( Original comments are preserved. )\n]=]\n\n--!native\n\nlocal g = require(game.ReplicatedStorage.RbxShader.GraphicsMathLib)\n\... |
[
{
"role": "assistant",
"content": "\n--[=[\n\tGregsSecret\n\tShader by @GregRostami found on his literal user description\n\tPorted to Luau — ran by my engine — `RbxShader`.\n]=]\n\n--!native\n\nlocal g = require(game.ReplicatedStorage.RbxShader.GraphicsMathLib)\nlocal vec2 = Vector2.new\nlocal vec3 = Vecto... |
[
{
"role": "assistant",
"content": "\n--[=[\n\tMicroRayMarcher\n\tShader by @iq on https://www.shadertoy.com/view/DlBcz1\n\tPorted to Luau — ran by my engine — `RbxShader`.\n\t\n\t( Original comments are preserved. )\n]=]\n\n--!native\n\nlocal g = require(game.ReplicatedStorage.RbxShader.GraphicsMathLib)\nlo... |
[
{
"role": "assistant",
"content": "\n--[=[\n\tNaiveRaycast\n\tPixelizes the game environment by naively raycasting.\n\t\n\tNOTE:\n\t- there is something very wrong with how I calculate\n\t material reflectance\n]=]\n\n--!native\n\nlocal g = require(game.ReplicatedStorage.RbxShader.GraphicsMathLib)\nlocal C... |
[
{
"role": "assistant",
"content": "\n--[=[\n\tPlasma\n\tShader by @Xor on https://www.shadertoy.com/view/WfS3Dd\n\tPorted to Luau — ran by my engine — `RbxShader`.\n\t\n\t( Original comments are preserved. )\n]=]\n\n--!native\n\nlocal g = require(game.ReplicatedStorage.RbxShader.GraphicsMathLib)\nlocal vec3... |
[
{
"role": "assistant",
"content": "\n--[=[\n\tShaderArt\n\tShader by @kishimisu on https://www.shadertoy.com/view/mtyGWy\n\tPorted to Luau — ran by my engine — `RbxShader`.\n\t\n\t( Original comments are preserved. )\n]=]\n\n--!native\n\nlocal g = require(game.ReplicatedStorage.RbxShader.GraphicsMathLib)\n\... |
[
{
"role": "assistant",
"content": "\n--[=[\n\tPlasma\n\tShader by @Xor on https://www.shadertoy.com/view/ctXGRn\n\tPorted to Luau — ran by my engine — `RbxShader`.\n\t\n\t( Original comments are preserved. )\n]=]\n\n--!native\n\nlocal g = require(game.ReplicatedStorage.RbxShader.GraphicsMathLib)\nlocal vec3... |
[
{
"role": "assistant",
"content": "\n--[=[\n\tSmallestClock\n\tShader by @GregRostami on https://www.shadertoy.com/view/MsdXzH\n\tPorted to Luau — ran by my engine — `RbxShader`.\n\t\n\t( Original comments are preserved. )\n]=]\n\n--!native\n\nlocal g = require(game.ReplicatedStorage.RbxShader.GraphicsMathL... |
[
{
"role": "assistant",
"content": "\n--[=[\n\tSun\n\tShader by @invivel on https://www.shadertoy.com/view/NlfcW2\n\tPorted to Luau — ran by my engine — `RbxShader`.\n\t\n\t( Original comments are preserved. )\n]=]\n\n--!native\n\nlocal g = require(game.ReplicatedStorage.RbxShader.GraphicsMathLib)\n\n-- // P... |
[
{
"role": "assistant",
"content": "\n--[=[\n\tUnknownPleasures\n\tShader by @smiarx on https://www.shadertoy.com/view/4sVyWR\n\tPorted to Luau — ran by my engine — `RbxShader`.\n\t\n\t( Original comments are preserved. )\n]=]\n\n--!native\n\nlocal g = require(game.ReplicatedStorage.RbxShader.GraphicsMathLib... |
[
{
"role": "assistant",
"content": "\n--[=[\n\tVoxelShader\n\tShader by @Xor on https://www.shadertoy.com/view/fstSRH\n\tPorted to Luau — ran by my engine — `RbxShader`.\n\t\n\t( Original comments are preserved. )\n]=]\n\n--!native\n\nlocal g = require(game.ReplicatedStorage.RbxShader.GraphicsMathLib)\n\nloc... |
[
{
"role": "assistant",
"content": "\n--[=[\n\tZippyZaps\n\tShader by @SnoopethDuckDuck on https://www.shadertoy.com/view/XXyGzh\n\tPorted to Luau — ran by my engine — `RbxShader`.\n\t\n\t( Original comments are preserved. )\n]=]\n\n--!native\n\nlocal g = require(game.ReplicatedStorage.RbxShader.GraphicsMath... |
[
{
"role": "assistant",
"content": "\n--[=[\n\tBismuthCrystals\n\tShader by @jarble on https://www.shadertoy.com/view/NdsXzl\n\tPorted to Luau — ran by my engine — `RbxShader`.\n\t\n\t( Original comments are preserved. )\n]=]\n\n--!native\n\nlocal g = require(game.ReplicatedStorage.RbxShader.GraphicsMathLib)... |
[
{
"role": "assistant",
"content": "\n--[=[\n\tClouds\n\tShader by @zxxuan1001 on https://www.shadertoy.com/view/tlB3zK\n\tPorted to Luau — ran by my engine — `RbxShader`.\n\t\n\t( Original comments are preserved. )\n]=]\n\n--!native\n\nlocal g = require(game.ReplicatedStorage.RbxShader.GraphicsMathLib)\nloc... |
[
{
"role": "assistant",
"content": "\n--[=[\n\tProcedural3DOcean\n\tShader by @jarble and @afl_ext on https://www.shadertoy.com/view/4cyXWw\n\tPorted to Luau — ran by my engine — `RbxShader`.\n\t\n\t( Original comments are preserved. )\n\t[ ⚠ NOT WORKING AS INTENDED ]\n]=]\n\n--!native\n\nlocal g = require(g... |
[
{
"role": "assistant",
"content": "\n--[=[\n\tSimpleOceanWaves\n\tShader by @jarble on https://www.shadertoy.com/view/ftS3zh\n\tPorted to Luau — ran by my engine — `RbxShader`.\n\t\n\t( Original comments are preserved. )\n\t[ ⚠ NOT WORKING AS INTENDED ]\n]=]\n\n--!native\n\nlocal g = require(game.Replicated... |
[
{
"role": "assistant",
"content": "\n--[=[\n\tStarNest\n\tShader by @Kali on https://www.shadertoy.com/view/XlfGRj\n\tPorted to Luau — ran by my engine — `RbxShader`.\n\t\n\tNOTE:\n\t- very resource intensive, our goal is to be able\n\t to render this efficiently without changing this\n\t programs code\n]... |
[
{
"role": "assistant",
"content": "\n--[=[\n\tCanvas\n\tA simple EditableImage interface that mimics\n\tCanvasDraw's API design. Specifically built for RbxShader.\n\t\n\tNOTE:\n\t* RGBA values are normalized (between 0 and 1)\n]=]\n\n--!native\n\nlocal Asset = game:GetService('AssetService')\n\nlocal Resamp... |
[
{
"role": "assistant",
"content": "\n--[=[\n\tGraphicsMathLib\n\tReimplementation of commonly used\n\tGLSL functions in Luau.\n\t\n\tNOTE:\n\t- Reimplementation is incomplete\n\t- Do not implement function swizzling\n\t just like what GLSL did, as Luau\n\t is not powerful enough to do that\n]=]\n\n--!nati... |
[
{
"role": "assistant",
"content": "\n--[=[\n\tVector4\n\tPartial implementation of the\n\t`vec4` data type in GLSL.\n]=]\n\n--!native\n\nlocal cos = math.cos\nlocal sin = math.sin\n\nlocal Vector4 = {}\n\nfunction Vector4.new(\n\tx : number , y : number ,\n\tz : number , w : number\n)\n\tlocal vec4 = { X = ... |
[
{
"role": "assistant",
"content": "\n--[=[ Basically an assertion with format. ]=]\n\n--!native\n--!strict\n\nlocal argue = setmetatable({}, {\n\t__call = function (\n\t\tt : {} ,\n\t\tcond : any ,\n\t\tmsg : string\n\t)\n\t\tmsg = msg or 'Assertion failed!'\n\t\tlocal location = t.at or debug.info(2, \"n\"... |
[
{
"role": "assistant",
"content": "\n-- [=[ Common types found across the scripts. ]=]\n--!native\n\nexport type ShaderBuffer = (\n\tfragColor : Vector3 ,\n\tfragCoords : Vector2 ,\n\tiTime : number ,\n\tiTimeDelta : number ,\n\tiResolution : Vector2 ,\n\tiMouse : SharedTable ,\n\tiDate : {number}\n) -> (nu... |
[
{
"role": "assistant",
"content": "--!strict\n\n--[=[\n\t@class Observers\n\n\tA collection of observer utility functions.\n]=]\n\nreturn {\n\tobserveTag = require(script.observeTag),\n\tobserveAttribute = require(script.observeAttribute),\n\tobserveProperty = require(script.observeProperty),\n\tobservePlay... |
[
{
"role": "assistant",
"content": "--!strict\n\nexport type AttributeValue =\n\t| string\n\t| boolean\n\t| number\n\t| UDim\n\t| UDim2\n\t| BrickColor\n\t| Color3\n\t| Vector2\n\t| Vector3\n\t| CFrame\n\t| NumberSequence\n\t| ColorSequence\n\t| NumberRange\n\t| Rect\n\t| Font\n\ntype Callback = (value: Attr... |
[
{
"role": "assistant",
"content": "--!strict\n\nlocal observePlayer = require(script.Parent.observePlayer)\n\ntype Callback = (player: Player, character: Model) -> (() -> ())?\n\n--[=[\n\t@within Observers\n\n\tCreates an observer that captures each character in the game.\n\n\t```lua\n\tobserveCharacter(fun... |
[
{
"role": "assistant",
"content": "--!strict\n\nlocal Players = game:GetService(\"Players\")\nlocal RunService = game:GetService(\"RunService\")\n\nlocal IS_CLIENT = RunService:IsClient()\n\ntype Callback = (character: Model) -> (() -> ())?\n\n--[=[\n\t@within Observers\n\t@client\n\n\tCreates an observer t... |
[
{
"role": "assistant",
"content": "--!strict\n\ntype Callback = (player: Player) -> (() -> ())?\n\nlocal Players = game:GetService(\"Players\")\n\n--[=[\n\t@within Observers\n\n\tCreates an observer that captures each player in the game.\n\n\t```lua\n\tobservePlayer(function(player)\n\t\tprint(\"Player ente... |
[
{
"role": "assistant",
"content": "--!strict\n\ntype Callback<T> = (value: T) -> (() -> ())?\n\n--[=[\n\t@within Observers\n\n\tCreates an observer around a property of a given instance.\n\n\t```lua\n\tobserveProperty(workspace.Model, \"Name\", function(newName: string)\n\t\tprint(\"New name:\", name)\n\n\t... |
[
{
"role": "assistant",
"content": "--!strict\n\nlocal CollectionService = game:GetService(\"CollectionService\")\n\ntype InstanceStatus = \"__inflight__\" | \"__dead__\"\n\ntype Callback<T> = (instance: T) -> (() -> ())?\n\n--[=[\n\t@within Observers\n\n\tCreates an observer around a CollectionService tag. ... |
[
{
"role": "assistant",
"content": "-- Thanks Stefan\n\ntype GenericFunction<T, U...> = (U...) -> T;\n\ndeclare function LPH_ENCFUNC<T, U...>(toEncrypt: GenericFunction<T, U...>, encKey: string, decKey: string): GenericFunction<T, U...>\ndeclare function LPH_ENCSTR(toEncrypt: string): string\ndeclare functio... |
[
{
"role": "assistant",
"content": "return {\n\tName = \"announce\",\n\tAliases = { \"m\" },\n\tDescription = \"Makes a server-wide announcement.\",\n\tGroup = \"DefaultAdmin\",\n\tArgs = {\n\t\t{\n\t\t\tType = \"string\",\n\t\t\tName = \"text\",\n\t\t\tDescription = \"The announcement text.\",\n\t\t},\n\t},... |
[
{
"role": "assistant",
"content": "return {\n\tName = \"goto-place\",\n\tAliases = {},\n\tDescription = \"Teleport to a Roblox place\",\n\tGroup = \"DefaultAdmin\",\n\tAutoExec = {\n\t\t'alias \"follow-player|Join a player in another server\" goto-place $1{players|Players} ${{get-player-place-instance $2{pl... |
[
{
"role": "assistant",
"content": "return {\n\tName = \"kick\",\n\tAliases = { \"boot\" },\n\tDescription = \"Kicks a player or set of players.\",\n\tGroup = \"DefaultAdmin\",\n\tArgs = {\n\t\t{\n\t\t\tType = \"players\",\n\t\t\tName = \"players\",\n\t\t\tDescription = \"The players to kick.\",\n\t\t},\n\t}... |
[
{
"role": "assistant",
"content": "return function(_, players)\n\tfor _, player in pairs(players) do\n\t\tplayer:Kick(\"Kicked by admin.\")\n\tend\n\n\treturn (\"Kicked %d players.\"):format(#players)\nend\n"
}
] |
[
{
"role": "assistant",
"content": "return {\n\tName = \"kill\",\n\tAliases = { \"slay\" },\n\tDescription = \"Kills a player or set of players.\",\n\tGroup = \"DefaultAdmin\",\n\tArgs = {\n\t\t{\n\t\t\tType = \"players\",\n\t\t\tName = \"victims\",\n\t\t\tDescription = \"The players to kill.\",\n\t\t},\n\t}... |
[
{
"role": "assistant",
"content": "return function(_, players)\n\tfor _, player in pairs(players) do\n\t\tif player.Character then\n\t\t\tplayer.Character:BreakJoints()\n\t\tend\n\tend\n\n\treturn (\"Killed %d players.\"):format(#players)\nend\n"
}
] |
[
{
"role": "assistant",
"content": "return {\n\tName = \"teleport\",\n\tAliases = { \"tp\" },\n\tDescription = \"Teleports a player or set of players to one target.\",\n\tGroup = \"DefaultAdmin\",\n\tAutoExec = {\n\t\t'alias \"bring|Brings a player or set of players to you.\" teleport $1{players|players|The ... |
[
{
"role": "assistant",
"content": "return function(_, fromPlayers, destination)\n\tlocal cframe\n\n\tif typeof(destination) == \"Instance\" then\n\t\tif destination.Character and destination.Character:FindFirstChild(\"HumanoidRootPart\") then\n\t\t\tcframe = destination.Character.HumanoidRootPart.CFrame\n\t... |
[
{
"role": "assistant",
"content": "return {\n\tName = \"fetch\",\n\tAliases = {},\n\tDescription = \"Fetch a value from the Internet\",\n\tGroup = \"DefaultDebug\",\n\tArgs = {\n\t\t{\n\t\t\tType = \"url\",\n\t\t\tName = \"URL\",\n\t\t\tDescription = \"The URL to fetch.\",\n\t\t},\n\t},\n}\n"
}
] |
[
{
"role": "assistant",
"content": "local HttpService = game:GetService(\"HttpService\")\n\nreturn function(_, url)\n\treturn HttpService:GetAsync(url)\nend\n"
}
] |
[
{
"role": "assistant",
"content": "return {\n\tName = \"get-player-place-instance\",\n\tAliases = {},\n\tDescription = \"Returns the target player's Place ID and the JobId separated by a space. Returns 0 if the player is offline or something else goes wrong.\",\n\tGroup = \"DefaultDebug\",\n\tArgs = {\n\t\t... |
[
{
"role": "assistant",
"content": "local TeleportService = game:GetService(\"TeleportService\")\n\nreturn function(_, playerId, format)\n\tformat = format or \"PlaceIdJobId\"\n\n\tlocal ok, _, errorText, placeId, jobId = pcall(function()\n\t\treturn TeleportService:GetPlayerPlaceInstanceAsync(playerId)\n\te... |
[
{
"role": "assistant",
"content": "local Players = game:GetService(\"Players\")\n\nreturn {\n\tName = \"position\",\n\tAliases = { \"pos\" },\n\tDescription = \"Returns Vector3 position of you or other players. Empty string is the player has no character.\",\n\tGroup = \"DefaultDebug\",\n\tArgs = {\n\t\t{\n... |
[
{
"role": "assistant",
"content": "return {\n\tName = \"uptime\",\n\tAliases = {},\n\tDescription = \"Returns the amount of time the server has been running.\",\n\tGroup = \"DefaultDebug\",\n\tArgs = {},\n}\n"
}
] |
[
{
"role": "assistant",
"content": "local startTime = os.time()\n\nreturn function()\n\tlocal uptime = os.time() - startTime\n\treturn (\"%dd %dh %dm %ds\"):format(\n\t\tmath.floor(uptime / (60 * 60 * 24)),\n\t\tmath.floor(uptime / (60 * 60)) % 24,\n\t\tmath.floor(uptime / 60) % 60,\n\t\tmath.floor(uptime) %... |
[
{
"role": "assistant",
"content": "local version = \"v1.12.0\"\n\nreturn {\n\tName = \"version\",\n\tArgs = {},\n\tDescription = \"Shows the current version of Cmdr\",\n\tGroup = \"DefaultDebug\",\n\n\tClientRun = function()\n\t\treturn (\"Cmdr Version %s\"):format(version)\n\tend,\n}\n"
}
] |
[
{
"role": "assistant",
"content": "return {\n\tName = \"alias\",\n\tAliases = {},\n\tDescription = \"Creates a new, single command out of a command and given arguments.\",\n\tGroup = \"DefaultUtil\",\n\tArgs = {\n\t\t{\n\t\t\tType = \"string\",\n\t\t\tName = \"Alias name\",\n\t\t\tDescription = \"The key or... |
[
{
"role": "assistant",
"content": "local UserInputService = game:GetService(\"UserInputService\")\nlocal TextChatService = game:GetService(\"TextChatService\")\n\nreturn {\n\tName = \"bind\",\n\tAliases = {},\n\tDescription = \"Binds a command string to a key or mouse input.\",\n\tGroup = \"DefaultUtil\",\n... |
[
{
"role": "assistant",
"content": "local Players = game:GetService(\"Players\")\n\nreturn {\n\tName = \"clear\",\n\tAliases = {},\n\tDescription = \"Clear all lines above the entry line of the Cmdr window.\",\n\tGroup = \"DefaultUtil\",\n\tArgs = {},\n\tClientRun = function()\n\t\tlocal player = Players.Loc... |
[
{
"role": "assistant",
"content": "return {\n\tName = \"convertTimestamp\",\n\tAliases = { \"date\" },\n\tDescription = \"Convert a timestamp to a human-readable format.\",\n\tGroup = \"DefaultUtil\",\n\tArgs = {\n\t\t{\n\t\t\tType = \"number\",\n\t\t\tName = \"timestamp\",\n\t\t\tDescription = \"A numerica... |
[
{
"role": "assistant",
"content": "return {\n\tName = \"echo\",\n\tAliases = { \"=\" },\n\tDescription = \"Echoes your text back to you.\",\n\tGroup = \"DefaultUtil\",\n\tArgs = {\n\t\t{\n\t\t\tType = \"string\",\n\t\t\tName = \"Text\",\n\t\t\tDescription = \"The text.\",\n\t\t},\n\t},\n\n\tClientRun = func... |
[
{
"role": "assistant",
"content": "local Players = game:GetService(\"Players\")\n\nlocal TEXT_BOX_PROPERTIES = {\n\tAnchorPoint = Vector2.new(0.5, 0.5),\n\tBackgroundColor3 = Color3.fromRGB(17, 17, 17),\n\tBackgroundTransparency = 0.05,\n\tBorderColor3 = Color3.fromRGB(17, 17, 17),\n\tBorderSizePixel = 20,\... |
[
{
"role": "assistant",
"content": "return {\n\tName = \"history\",\n\tAliases = {},\n\tAutoExec = {\n\t\t'alias \"!|Displays previous command from history.\" run ${history $1{number|Line Number}}',\n\t\t'alias \"^|Runs the previous command, replacing all occurrences of A with B.\" run ${run replace ${histor... |
[
{
"role": "assistant",
"content": "local Players = game:GetService(\"Players\")\n\nreturn {\n\tName = \"hover\",\n\tDescription = \"Returns the name of the player you are hovering over.\",\n\tGroup = \"DefaultUtil\",\n\tArgs = {},\n\n\tClientRun = function()\n\t\tlocal mouse = Players.LocalPlayer:GetMouse()... |
[
{
"role": "assistant",
"content": "return {\n\tName = \"json-array-decode\",\n\tAliases = {},\n\tDescription = \"Decodes a JSON Array into a comma-separated list\",\n\tGroup = \"DefaultUtil\",\n\tArgs = {\n\t\t{\n\t\t\tType = \"json\",\n\t\t\tName = \"JSON\",\n\t\t\tDescription = \"The JSON array.\",\n\t\t}... |
[
{
"role": "assistant",
"content": "local HttpService = game:GetService(\"HttpService\")\n\nreturn {\n\tName = \"json-array-encode\",\n\tAliases = {},\n\tDescription = \"Encodes a comma-separated list into a JSON array\",\n\tGroup = \"DefaultUtil\",\n\tArgs = {\n\t\t{\n\t\t\tType = \"string\",\n\t\t\tName = ... |
[
{
"role": "assistant",
"content": "return {\n\tName = \"len\",\n\tAliases = {},\n\tDescription = \"Returns the length of a comma-separated list\",\n\tGroup = \"DefaultUtil\",\n\tArgs = {\n\t\t{\n\t\t\tType = \"string\",\n\t\t\tName = \"CSV\",\n\t\t\tDescription = \"The comma-separated list\",\n\t\t},\n\t},\... |
[
{
"role": "assistant",
"content": "return {\n\tName = \"math\",\n\tAliases = {},\n\tDescription = \"Perform a math operation on 2 values.\",\n\tGroup = \"DefaultUtil\",\n\tAutoExec = {\n\t\t'alias \"+|Perform an addition.\" math + $1{number|Number} $2{number|Number}',\n\t\t'alias \"-|Perform a subtraction.\... |
[
{
"role": "assistant",
"content": "return {\n\tName = \"pick\",\n\tAliases = {},\n\tDescription = \"Picks a value out of a comma-separated list.\",\n\tGroup = \"DefaultUtil\",\n\tArgs = {\n\t\t{\n\t\t\tType = \"positiveInteger\",\n\t\t\tName = \"Index to pick\",\n\t\t\tDescription = \"The index of the item ... |
[
{
"role": "assistant",
"content": "local generator = Random.new()\n\nreturn {\n\tName = \"rand\",\n\tAliases = {},\n\tDescription = \"Returns a random number between min and max\",\n\tGroup = \"DefaultUtil\",\n\tArgs = {\n\t\t{\n\t\t\tType = \"integer\",\n\t\t\tName = \"First number\",\n\t\t\tDescription = ... |
[
{
"role": "assistant",
"content": "return {\n\tName = \"replace\",\n\tAliases = { \"gsub\", \"//\" },\n\tDescription = \"Replaces text A with text B\",\n\tGroup = \"DefaultUtil\",\n\tAutoExec = {\n\t\t'alias \"map|Maps a CSV into another CSV\" replace $1{string|CSV} ([^,]+) \"$2{string|mapped value|Use %1 t... |
[
{
"role": "assistant",
"content": "return {\n\tName = \"resolve\",\n\tAliases = {},\n\tDescription = \"Resolves Argument Value Operators into lists. E.g., resolve players * gives you a list of all players.\",\n\tGroup = \"DefaultUtil\",\n\tAutoExec = {\n\t\t'alias \"me|Displays your username\" resolve playe... |
[
{
"role": "assistant",
"content": "return {\n\tName = \"run\",\n\tAliases = { \">\" },\n\tAutoExec = {\n\t\t'alias \"discard|Run a command and discard the output.\" replace ${run $1} .* \\\\\"\\\\\"',\n\t},\n\tDescription = \"Runs a given command string (replacing embedded commands).\",\n\tGroup = \"Default... |
[
{
"role": "assistant",
"content": "return {\n\tName = \"run-lines\",\n\tAliases = {},\n\tDescription = \"Splits input by newlines and runs each line as its own command. This is used by the init-run command.\",\n\tGroup = \"DefaultUtil\",\n\tArgs = {\n\t\t{\n\t\t\tType = \"string\",\n\t\t\tName = \"Script\",... |
[
{
"role": "assistant",
"content": "local conditions = {\n\tstartsWith = function(text, arg)\n\t\tif text:sub(1, #arg) == arg then\n\t\t\treturn text:sub(#arg + 1)\n\t\tend\n\tend,\n}\n\nreturn {\n\tName = \"runif\",\n\tAliases = {},\n\tDescription = \"Runs a given command string if a certain condition is me... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.