Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- part1 = Instance.new("Part", owner.Character)
- part1.Size = Vector3.new(10,10,1)
- part1.Anchored = true
- part1.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(0,2.5,0)
- local screengui2 = Instance.new("SurfaceGui", part1)
- screengui2.Name = "Hud"
- screengui2.Face = Enum.NormalId.Front
- local tl = Instance.new("TextBox", screengui2)
- tl.Size = UDim2.new(1, 0, 0.125, 0)
- tl.BackgroundTransparency = 0
- tl.AnchorPoint = Vector2.new(0.5, 0)
- tl.Position = UDim2.new(0.5, 0, 0, 0)
- tl.Text = "Lucas_YT111 morse code translator Version s"
- tl.TextSize = 30
- local tb = Instance.new("TextBox", screengui2)
- tb.Size = UDim2.new(1, 0, 1, 0)
- tb.BackgroundTransparency = 1
- tb.AnchorPoint = Vector2.new(0.5, 0.5)
- tb.Position = UDim2.new(0.5, 0, 0.5, 0)
- local tb2 = Instance.new("TextBox", screengui2)
- tb2.Size = UDim2.new(0.25, 0, 0.25, 0)
- tb2.BackgroundTransparency = 1
- tb2.TextTransparency = 0.35
- tb2.AnchorPoint = Vector2.new(0.5, 0.75)
- tb2.Position = UDim2.new(0.5, 0, 0.75, 0)
- tb2.TextSize = 30
- local dot = Instance.new("Sound", part1)
- dot.Volume = 2
- dot.SoundId = "rbxassetid://967014213"
- dot.Looped = true
- tb.Text = ""
- tb.TextSize = 40
- owner.Chatted:Connect(function(Text)
- tb.Text = ""
- tb2.Text = Text
- for Letter in string.gmatch(Text, ".") do
- tb.Text = tb.Text.." "
- if string.lower(Letter) == "h" then
- tb.Text = tb.Text.."...."
- elseif string.lower(Letter) == "e" then
- tb.Text = tb.Text.."."
- elseif string.lower(Letter) == "l" then
- tb.Text = tb.Text..".-.."
- elseif string.lower(Letter) == "o" then
- tb.Text = tb.Text.."---"
- elseif string.lower(Letter) == "p" then
- tb.Text = tb.Text..".--."
- elseif string.lower(Letter) == "i" then
- tb.Text = tb.Text..".."
- elseif string.lower(Letter) == "m" then
- tb.Text = tb.Text.."--"
- elseif string.lower(Letter) == "a" then
- tb.Text = tb.Text..".-"
- elseif string.lower(Letter) == "v" then
- tb.Text = tb.Text.."...-"
- elseif string.lower(Letter) == "t" then
- tb.Text = tb.Text.."-"
- elseif string.lower(Letter) == "b" then
- tb.Text = tb.Text.."-..."
- elseif string.lower(Letter) == "c" then
- tb.Text = tb.Text.."-.-."
- elseif string.lower(Letter) == "d" then
- tb.Text = tb.Text.."-.."
- elseif string.lower(Letter) == "f" then
- tb.Text = tb.Text.."..-."
- elseif string.lower(Letter) == "g" then
- tb.Text = tb.Text.."--."
- elseif string.lower(Letter) == "j" then
- tb.Text = tb.Text..".---"
- elseif string.lower(Letter) == "k" then
- tb.Text = tb.Text.."-.-"
- elseif string.lower(Letter) == "n" then
- tb.Text = tb.Text.."-."
- elseif string.lower(Letter) == "q" then
- tb.Text = tb.Text.."--.-"
- elseif string.lower(Letter) == "r" then
- tb.Text = tb.Text..".-."
- elseif string.lower(Letter) == "s" then
- tb.Text = tb.Text.."..."
- elseif string.lower(Letter) == "u" then
- tb.Text = tb.Text.."..-"
- elseif string.lower(Letter) == "w" then
- tb.Text = tb.Text..".--"
- elseif string.lower(Letter) == "x" then
- tb.Text = tb.Text.."-..-"
- elseif string.lower(Letter) == "y" then
- tb.Text = tb.Text.."-.--"
- elseif string.lower(Letter) == "z" then
- tb.Text = tb.Text.."--.."
- elseif string.lower(Letter) == " " then
- tb.Text = tb.Text.." / "
- end
- end
- wait()
- for Letter in string.gmatch(tb.Text, ".") do
- if Letter == "." then
- dot:Play()
- wait(0.5)
- dot:Stop()
- wait(0.25)
- elseif Letter == "-" then
- dot:Play()
- wait(1)
- dot:Stop()
- wait(0.25)
- elseif Letter == " " then
- wait(0.5)
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement