Skip to content

Instantly share code, notes, and snippets.

View Mullets-Gavin's full-sized avatar
👋
Hi, I'm Mullets

Gavin Mullets-Gavin

👋
Hi, I'm Mullets
View GitHub Profile
@Mullets-Gavin
Mullets-Gavin / GetProperties.lua
Last active September 1, 2023 21:49
Get all the properties on an instance
local Cached = {}
local Properties = {
"AttachmentForward",
"AttachmentPoint",
"AttachmentPos",
"AttachmentRight",
"AttachmentUp",
"AlignType",
"MaxAngularVelocity",
"MaxTorque",
@Mullets-Gavin
Mullets-Gavin / typescriptreact.json
Created April 3, 2021 11:57
Roblox Typescript React Snippets
{
"Class Component": {
"prefix": "component",
"body": [
"import Roact from \"@rbxts/roact\";",
"",
"interface ${1:App}State {}",
"interface ${1:App}Props {}",
"",
"export class ${1:App} extends Roact.Component<${1:App}Props, ${1:App}State> {",
@Mullets-Gavin
Mullets-Gavin / README.md
Created March 16, 2021 12:19
s - A state management library for Roblox

s

version docs support

A state management library for Roblox

@Mullets-Gavin
Mullets-Gavin / wait.lua
Last active March 5, 2021 22:08
Better Roblox wait
local RunService = game:GetService("RunService")
local function Wait(clock: number?): number
clock = clock or 0
local start = os.clock()
local delta = 0
repeat
delta += RunService.Stepped:Wait()
until delta >= clock
@Mullets-Gavin
Mullets-Gavin / Executor.lua
Created March 1, 2021 22:46
Executor Class
local Executer = {} do
Executer.__index = Executer
function Executer.new(callback)
return setmetatable({
callback = callback,
}, Executer)
end
function Executer:Destroy()
@Mullets-Gavin
Mullets-Gavin / Option.lua
Created December 7, 2020 20:04
Lua Option
-- @Author: Mullets-Gavin
-- @Desc: Option is a custom lightweight version of Rusts' "Option" enum on the lua shared global in Roblox (change to _G outside of Roblox)
local Option = {}
Option.__index = Option
function Option:Match(result: table): boolean
if typeof(result.type) == 'string' then
return result.type == self.type
end
@Mullets-Gavin
Mullets-Gavin / rdc-gamejam-2020
Created July 19, 2020 22:35
RDC 2020 GameJam Games List
https://www.roblox.com/games/5372002879/Double-Vision-RDC-2020-GameJam
https://www.roblox.com/games/5371973600/20-20-Vision
https://www.roblox.com/games/5372844869/20-20-Vision
https://www.roblox.com/games/5371983339/2020-Vision-A-New-Perspective-on-the-Year#!/about
https://www.roblox.com/games/5372378757/A-Wild-Trip-RDC2020
https://www.roblox.com/games/5372946509/Acuity
https://www.roblox.com/games/5371956373/agn-sia#!/about
https://www.roblox.com/games/5372006186/Airship-game-jam-2020
https://www.roblox.com/games/5371748232/Best-Year-Ever
https://www.roblox.com/games/5371836136/Bloxlabs