Introduction:
Introducing, MorseBuddy! Your friend for encoding, decoding and playing back morse code! This module has many features, such as dialog sound effects in games, or realism oriented games. Morse buddy was just a fun project I did to practice some simple scripting and I thought it could have some use here!
How to use:
This module has multiple useful functions, and more to come. The two main ones are:
Encode(MessageToEncode: string)
Playback(MessageInMorse: table, soundobject: object)
To get a string converted to morse code, you would do
local MorseBuddy = require(game.Workspace.MorseBuddy) --Requires the module
local CoolMessage = MorseBuddy.Encode("hi im super super cool") -- Could be any message you like
print(CoolMessage) -- Prints back the cool message you just converted to morse code!
To playback your super cool message in sound, you would run
local MorseBuddy = require(game.Workspace.MorseBuddy) --Requires the module
local CoolMessage = MorseBuddy.Encode("hi im super super cool") -- Could be any message you like
print(CoolMessage) -- Prints back the cool message you just converted to morse code!
MorseBuddy.Playback(CoolMessage, game.Workspace.MorseCodeSound) --Could be any sound path
You can get MorseBuddy by using this link:
https://www.roblox.com/library/9441166953/Mor-se-Buddy