Skip to content

Instantly share code, notes, and snippets.

View daily3014's full-sized avatar
๐ŸŽ‰
2026

daily daily3014

๐ŸŽ‰
2026
  • 06:39 (UTC +01:00)
View GitHub Profile
@daily3014
daily3014 / base64_type.luau
Created December 10, 2025 20:52
Ever wanted to encode a string in Base64? Can't be bothered with those bloated Text to Base64 websites? Too elegant for those overrated "terminals" or whatever? Now you can encode strings in Base64 straight in luau with TYPES!
--!strict
--!optimize 2
--!native
type function Base64(user_type)
if not user_type:is("singleton") then
error(`provided type is not a singleton: {user_type.tag}`)
end
local value = tostring(user_type:value() :: string)
@daily3014
daily3014 / getextentssize.luau
Last active September 24, 2025 20:18
GetExtentsSize for Parts
-- Original from https://devforum.roblox.com/t/getextentssize-of-one-part-without-model/404945/7
-- 300% faster than original
--!native
--!optimize 2
--!strict
local function GetPartExtentsSize(Part: BasePart): Vector3
local Size: Vector3 = Part.Size
local SX: number, SY: number, SZ: number = Size.X, Size.Y, Size.Z
@daily3014
daily3014 / randomservice_poc.luau
Last active November 22, 2025 22:49
RandomService: Bruteforcing the RNG state
local Seed = 568182
local RNGState = Random.new(Seed)
-- The seed is unknown to the exploiter at this point
local function Advance(Seed)
math.randomseed(Seed or math.random(1, 1000))
for i = 1, math.random(1, 3) do
if math.random() > 0.5 then
continue