J

@jozzy

Data Sets & Probability Test

Lua
1 month ago
local function isWholeNumber(n) return type(n) == "number" and n == math.floor(n) end local Table = { [1] = 0.543, [2] = 0.018, [3] = 0.173, [4] = 0.025, [5] = 0.114,

OOP Test #2

Lua
2 months ago
math.randomseed(os.time()) math.random(); math.random() local NPC = {} NPC.__index = NPC local suffixes = {"", "k", "M", "B", "T", "Q"} local function abbreviate(n) local i = 1

yop

Lua
3 months ago
local string = io.read() local z = tonumber(string) function sigmoid(x, magnitude) if not x or not magnitude then x = 1 magnitude = 1 end return (1 / (1 + math.exp(-x * magnitude)))

Player OOP System

Lua
5 months ago
local PlayerClass = {Player = nil, Level = nil, XP = nil, XPNeeded = nil, Multiplier = nil, Name = nil} local WeaponClass = {Player = nil, Level = 0, Damage = nil, Cooldown = nil, Name = nil} PlayerClass.__index = PlayerClass PlayerClass.All_Play

RNG System

Lua
9 months ago
-- LUCK MULTIPLIER TYPING SYSTEM IS STILL A W.I.P local Config = {} Config.Rarities = { "Common", "Uncommon", "Rare", "Epic", "Legendary", "Exotic", "Mythic", "???" } Config.RarityRate = { ["Common"] = 54,

Self Made LUA Vector3

Lua
9 months ago
local Vector = {} local Vector_mt = { __index = Vector } -- Metatable for methods function Vector.new(x, y, z) local new_vec = { x = x or 0, y = y or 0, z = z or 0 } setmetatable(new_vec, Vector_mt) return new_vec end -- Overloading ad

Hitbox Module

Lua
9 months ago
local hitbox = {} function hitbox.new() local part = Instance.new("Part", workspace.Hitboxes) part.CanCollide = false part.Anchored = true end return hitbox

Math Functions Test

Lua
1 year ago
-- Notation Test from @jozzyonroblox (enter a number for the first two then the notation you want) -- Program Input Ex. (10, 26, sigma) or (1, 5, pi) make sure you enter a number for the first two -- Notations: sigma, pi, quad, exp, log, fac -- Inp

scripts 2025 edition

Lua
1 year ago
local value = io.read() print(string.format("%.4f", os.clock() * value ^ value)) print(string.format("%.4f", value ^ value)) print(string.format("%.5f", os.clock())) local CompletedQuests = {} local game = {DataModel = { GetService

inc

Lua
1 year ago
-- // Stat Index \\ -- -- Atoms: Starting Stat -- Molecules: Automatic Atoms, x^0.5 Atoms (Automatic Processing) -- Viruses: x2.5 Molecules, x4 Atoms -- Cells: x2.25 Viruses, x7 Molecules, x20 Atoms -- Organs: x4 Cells, x10 Viruses, x50 Molecules,

testing

Lua
1 year ago
local replicated_storage = game.GetService(game, "ReplicatedStorage"); local players = game.GetService(game, "Players"); local camera = workspace.CurrentCamera; local utility = require(replicated_storage.Modules.Utility); local get_players = funct

bnum

Lua
1 year ago
-- made by idontthinkofacool -- put number in input as 1e(any number as long ad it has less than 303 0s) dont put parentheses though -- example(1e100) or (1e8303447937337) -- bnum used for getting numbers past the lua limit --BigNum mode in Eternity

inc functions

Lua
1 year ago
local Services = require(game:GetService("ReplicatedStorage"):FindFirstChild("Modules").Services) local ChangeStats = Services.rs.Remotes.ChangeStats

loading screen

Lua
1 year ago
--// REPLICATED FIRST \\-- local gui = script.LoadingUi

lerpepe

Lua
1 year ago
function linear(x, y) end function lerp(a, b, t) local lerp = a * (1 - t) * b * t for i = a, b, b do print(i) end

RANDOM OBBY

Lua
1 year ago
local game = {} local module = {} function wait(t) local time = t / os.clock() end function module.new() local self = setmetatable({}, module)

AbilityModule

Lua
1 year ago
local ReplicatedStorage = game:GetService("ReplicatedStorage") local Animations = ReplicatedStorage:WaitForChild("Animations") local ability = {} ability.FirstHit = 5 ability.BarrageDamage = 1 ability.FinalDamage = 9

string learning

Lua
1 year ago
local function Comma(Amount) while true do local digit Amount, digit = string.gsub(Amount, "(-?%d+)(%d%d%d)", "%1,%2") if (digit == 0) then break end end return Amount end

SG~Battlegrounds

Lua
1 year ago
--// HITBOX MODULE \\-- local Debris = game:GetService("Debris") local hitbox = {} hitbox.__index = hitbox -- Default properties hitbox.Visualize = false hitbox.Size = Vector3.new(1, 1, 1)

SG~TD

Lua
1 year ago
-- TowerIdeas --Mayhem, Rage, Violence, Malice, Malevolence -- 0 Stars (Starter Tower) --Chaos, Destruction, Havoc, Depredation, Despoliation -- 2000 Stars -- Purity, Holy, Angelic, Heavenly, Godlike -- 1500 Stars -- Corruption, Vanta-X, Dark, B