This repository contains two scripts that allow you to convert text to Morse code and visualize it using different methods in the Roblox platform. Additionally, a third script is provided that prints out the Morse code without any visualization.
This script uses a beep sound to represent the Morse code. Each dot is represented by a short beep, and each dash is represented by a longer beep. The script plays the corresponding beeps for the Morse code and pauses between beeps to create a clear distinction.
- Replace the value of
BeepSound
with the name of your sound object in the Roblox workspace. - Adjust the values of
DotDuration
,DashDuration
,BeepPitch
, andConversionInterval
to your desired settings. - Replace the value of
textToConvert
inside thestartConversion
function with your desired text input. - Run the script within the Roblox environment.
This script uses a light source to represent the Morse code. Each dot is represented by a flicker of the light, and each dash is represented by a longer flicker. The script adjusts the brightness of the light source to create the flickering effect.
- Replace the value of
Light
with the name of your light object in the Roblox workspace. - Adjust the values of
FlickerDuration
,FlickerIntensity
, andConversionInterval
to your desired settings. - Replace the value of
textToConvert
inside thestartConversion
function with your desired text input. - Run the script within the Roblox environment.
This script prints out the Morse code without any visualization. It takes the input text and converts it to Morse code using a table that maps each character to its corresponding Morse code representation.
- Replace the value of
textToConvert
inside thestartConversion
function with your desired text input. - Run the script within the Roblox environment.
Please note that these scripts are designed to be used within the Roblox platform and rely on specific objects and functionalities provided by Roblox. Feel free to modify these scripts to suit your specific needs and integrate them into your Roblox projects. Enjoy Morse code conversion and exploration in Roblox!