Skip to content

Instantly share code, notes, and snippets.

View Ethan-Rivas's full-sized avatar
🏠
Working from home

Ethan Rivas Ethan-Rivas

🏠
Working from home
View GitHub Profile
@Ethan-Rivas
Ethan-Rivas / encryption.rb
Created September 10, 2019 05:16
Multiplication Encryption
def mathEncryption(alphabet, key, message)
# Format the alphabet (split by element and slice)
alphabet = alphabet.split("")
alphabetDivided = alphabet.each_slice(alphabet.size / 2).to_a
encryptedMessage = ""
array = []
# Build they encryption table (is not sorted yet)
alphabet.size.times do
@Ethan-Rivas
Ethan-Rivas / script.lua
Last active March 28, 2017 14:54
LShift to Run with Animation - Roblox
--// Services
local Players = game:GetService("Players")
local UIS = game:GetService("UserInputService")
--// Local Variables
local player = Players.LocalPlayer
local animation = Instance.new("Animation")
local trackAnimation = nil
--// Setters