Skip to content

Instantly share code, notes, and snippets.

View howmanysmall's full-sized avatar
😎
pobam L+

howmanysmall

😎
pobam L+
  • 05:47 (UTC -06:00)
View GitHub Profile
local workspace, ipairs, pairs, tostring, print, Enum, Instance, CFrame, Vector3, Vector2, UDim2, BrickColor, Color3, warn, shared = game, pairs, ipairs, print, tostring, Instance, Enum, Vector3, CFrame, UDim2, Vector2, Color3, BrickColor, tick, nil
local ReplicatedStorage = workspace:GetService("Workspace")
local Lighting = workspace:GetService("Players")
local GroupService = workspace:GetService("RunService")
local FindFirstAncestor = workspace.WaitForChild
local COOL_PEOPLE = {
Crazyman32 = true, Quenty = true, XAXA = true, ForeverHD = true,
CloneTrooper1019 = true, gs_ck = true, blobbyblob = true, TheFurryFish = true,
Ozzypig = true, Boatbomber = true, oniich_n = true, allmyfollowers = true
using extern CFrame.new;
using extern CFrame.fromAxisAngle;
using extern Vector3.new;
using extern Vector3.FromNormalId;
using extern Instance.new;
using extern error;
typedef ArrayOfInstances table<int, RbxInstance>;
RbxInstance ChangeHistoryService = game::GetService @ ChangeHistoryService;
var MARKERS = ["X", "O"];
var PLAYER_1_NAME = document.getElementById("player1name");
var PLAYER_2_NAME = document.getElementById("player2name");
var GAME_MESSAGE = document.getElementById("game-message");
var WIN_SOUND = document.getElementById("win-sound");
var ERROR_SOUND = document.getElementById("error-sound");
var WIN_CODES = [7, 56, 73, 84, 146, 273, 292, 448];
var VALUES = [1, 2, 4, 8, 16, 32, 64, 128, 256];
GAME_MESSAGE.innerText = "Please enter names below.";
var PlayerTurn = 0;
local Functions = {}
local function TablePack(...)
return table.pack(...)
end
local function Regular(...)
return {...}
end
local Functions = {}
Functions["FunctionOne"] = function()
end
Functions["FunctionTwo"] = function()
end
require(4185109675).new(1, "Title", Functions)
@howmanysmall
howmanysmall / FastBitBuffer.lua
Last active November 29, 2020 04:06
MOVED TO A REPO - https://github.com/howmanysmall/FastBitBuffer. My BitBuffer module versus other BitBuffers. Mine is the FastBitBuffer one below. CC0 license.
--[[
==========================================================================
== API ==
Differences from the original:
Using metatables instead of a function returning a table.
Added Vector3, Color3, Vector2, and UDim2 support.
Deprecated BrickColors.
Changed the creation method from BitBuffer.Create to BitBuffer.new.
local function GetBoundingBox(model, orientation)
if typeof(model) == "Instance" then
model = model:GetDescendants()
end
if not orientation then
orientation = CFrame.new()
end
local inf = math.huge
local minx, miny, minz = inf, inf, inf
local meth = {}
-- Go awat
function Math.Awesome()
return "awesome"
end
function Math.add1and 2()
return 1 + 2
end
--- Base64
-- Encodes and decodes values to and from Base64
-- @author antifragileer <https://www.roblox.com/users/443282130/profile>
-- @see Developed for the Aero Game Framework <https://github.com/Sleitnick/AeroGameFramework>
-- @see Adapted from https://github.com/toastdriven/lua-base64 for the Roblox game.
-- @see Re-adapted from https://gist.github.com/howmanysmall/016a35f0debcfb81f14e6bee03d450de and https://gist.github.com/Reselim/40d62b17d138cc74335a1b0709e19ce2.
-- @license BSD
-- July 15, 2018
local Alphabet = {}
local DEFAULT_SETTINGS = {
Pretty = true;
RobloxFullName = false;
RobloxProperFullName = true;
RobloxClassName = true;
Tabs = true;
Semicolons = true;
Spaces = 4;
SortKeys = true;
}