Skip to content

Instantly share code, notes, and snippets.

View TominoCZ's full-sized avatar
🙃
What's happening? I have no clue.

Morphox TominoCZ

🙃
What's happening? I have no clue.
View GitHub Profile
@MaximumADHD
MaximumADHD / new_class.lua
Created April 13, 2023 17:28
Template for creating a snippet plugin with one argument in Roblox Studio.
local ScriptEditorService = game:GetService("ScriptEditorService")
local SNIPPET_NAME = "new_class"
local SNIPPET_DESC = "Create a new prototype class with an export type defined!"
local SNIPPET = table.concat({
"local ${1:%s} = {}",
"${1}.__index = ${1}",
"",
"export type Class = typeof(setmetatable({} :: {",