L

@LuaLearner040706

converter

Lua
2 years ago
local Onumber = io.read() -- used for checks !!! DO NOT CHANGE THIS !!! local number = Onumber local SubE local PostE if not Onumber or Onumber:match("^%s*$") then print("No input provided") os.exit(0) end

Algebra calculator

Lua
2 years ago
-- basic equations -- addition ( x + 5 = 2) print("Give A") a = io.read("*line") if a ~= nil then print("Give B") b = io.read("*line") end if b ~= nil and a ~= nil then

password generator

Lua
2 years ago
local letters2 = {} for num = 1, 62 do local letter = string.char(64 + num) letters2[num] = {Letter = letter, Num = num} end local length = math.random(1,10+(math.random(1,5+(math.random(1,2)))))*math.ceil(math.random(1)*2.25) function G

Bank Manager Test

Lua
2 years ago
BankInfo = { -- age in Years, Balance in thousands LOWERCASE k [1] = {Name = "Tom", Age = 10, balance = "1k", credit = 1000,}, [2] = {Name = "Dylan", Age = 5, balance = "2.5k", credit = 800,}, [3] = {Name = "Bob", Age = 1, balance = "0.0

for loop and module reference code

Lua
2 years ago
InstrumentsInfo = { [1] = {Name = "Piano", Strings = true, Price = 4e4, Diffuculty = "Medium",}, -- use k later [2] = {Name = "Violin", Strings = true, Price = 1e3, Diffuculty = "Hard",}, [3] = {Name = "Trumpet", Strings = false, Price = 2

Physicis idk

Lua
2 years ago
Find = io.read("*line") -- input [ 'initialvel' ] made by tom KinematicsDeriv='No' Term1, Term2, Term3, Term4, Term5 = 'N/A', 'N/A', 'N/A', 'N/A', 'N/A' FirstDervPosition, SecondDervVelocity, ThirdDervAcceleration ='N/A', 'N/A', 'N/A' Accel

code that uscka nd makes me want to kil myself

Python
3 years ago
# 15, 16miles per galloon, convert to KM, how many KM to travel to use 32.62 gallons of gas choice1 = input("Do you want to use 'KM' or 'Mi': ")) choice1 = str(choice1) # While loop while True: # if stateents

Rune chance

Python
3 years ago
# 5/1m % - 1000 opens import math Am = float(input("How many runes will you open ")) print("") C = 1e6/5 C = int(C) Ch = (int(C) / int(Am)) print("Your chance to get the rune is 1/" + str(Ch))

Reverse function

Python
3 years ago
name = "This is a message generated backwards by python script" reversed_name = name[::-1] print(reversed_name)

booster

Lua
3 years ago
print("Would you like to boost the server?") local choice1 = io.read("*line") if choice1 == "Yes" or choice1 == "yes" then print("How many times would you like to boost the server") local choice2 = tonumber(io.read("*line")) if ch

RNG picker

Lua
3 years ago
math.randomseed(os.time()) local number = math.random(1, 100) print("Guess the number from 1-100") local Ans = tonumber(io.read("*line")) if Ans == nil then print('Please input a number.') elseif Ans == number then print('You are correct! The

Number handler

Lua
3 years ago
local number = io.read("*line") number = number if number == 0 or number == nil then print(number) elseif number < 1e3 then print(number) elseif number < 1e6 then local Ans = tostring(number / 1e3) .. 'K' print("Your number is " ..

Formula for credit gain

Lua
3 years ago
function print_formula(base, levels) for level = 1, levels do formula = (base + level) * (1.01 + (level/100) * level) print("Level " .. level .. ": " .. formula) end end print_formula(250, 25)

test

Lua
3 years ago
base = 150 Level = 1 C = 1.25 XP = (1000 * Level) + 1000 -- ans = XP^C ans = ((150)(C)^(Level / C)) -- ans =(XP)(C)^(Level / C) print(ans)

to be continuted

Lua
3 years ago
local Weapon = io.read("*line") local HP = 100 if Weapon == 'Gun1' then print('Pistol') local Damage = 17 local Type = io.read("*line") if Type == Headshot then Damage = (Damage * 2) elseif Type == Bodyshot th

Level system

Lua
3 years ago
-- Level = (1000 * Level) + 1000 local Level = 0 local requirement = (1000 * Level) + 1000 local BaseLevel = 0 local XP = 950 local Give = io.read("*line") if Give == 'Kill' then XP = (XP + 100) -- can change, kill exp print('Enemy

basic RNG giver

Lua
3 years ago
local a = math.random(1, 100) print('A = ' .. a) if a <= 10 then print('10%') elseif a <= 20 then print('20%') -- STC elseif a <= 30 then print('30%') -- STC elseif a <= 40 then print('40%') -- STC

Luck calculator for RSX

Lua
3 years ago
-- Rank simulator X luck calculator -- all of this is to be put in program input -- follow instructions below or ask shootthecreeper if unclear -- inputs : *MAKE SURE EACH ANSWER IS ITS OWN LINE!* -- input how many luck upgrades you own local Upg =

Speed script

Lua
3 years ago
local player = game.player:WaitForChild("Player") local userInputService = game:GetService("UserInputService") local speed = player.Humanoid.WalkSpeed -- Set the player's speed player.Humanoid.WalkSpeed = speed

Rank sim X egg calculator

Lua
3 years ago
-- Rank simulator X egg calculator -- this caluclator determines how many eggs you can hatch with X currency -- individual pets will be added later -- put the currency you have and the egg price in the program input to the left -- Example: -- 100000