SHOW:
|
|
- or go back to the newest paste.
| 1 | - | function the() |
| 1 | + | part1 = Instance.new("Part", owner.Character)
|
| 2 | - | H = Instance.new("Sound",owner.Character.Head)
|
| 2 | + | part1.Size = Vector3.new(10,10,1) |
| 3 | - | H.SoundId = "rbxassetid://203398397" |
| 3 | + | part1.Anchored = true |
| 4 | - | H.Volume = 4 |
| 4 | + | part1.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(0,2.5,0) |
| 5 | - | E = Instance.new("Sound",owner.Character.Head)
|
| 5 | + | local screengui2 = Instance.new("SurfaceGui", part1)
|
| 6 | - | E.SoundId = "rbxassetid://203398314" |
| 6 | + | screengui2.Name = "Hud" |
| 7 | - | E.Volume = 4 |
| 7 | + | screengui2.Face = Enum.NormalId.Front |
| 8 | - | L = Instance.new("Sound",owner.Character.Head)
|
| 8 | + | local tl = Instance.new("TextBox", screengui2)
|
| 9 | - | L.SoundId = "rbxassetid://223782961" |
| 9 | + | tl.Size = UDim2.new(1, 0, 0.125, 0) |
| 10 | - | L.Volume = 4 |
| 10 | + | tl.BackgroundTransparency = 0 |
| 11 | - | P = Instance.new("Sound",owner.Character.Head)
|
| 11 | + | tl.AnchorPoint = Vector2.new(0.5, 0) |
| 12 | - | P.SoundId = "rbxassetid://203398727" |
| 12 | + | tl.Position = UDim2.new(0.5, 0, 0, 0) |
| 13 | - | P.Volume = 4 |
| 13 | + | tl.Text = "Lucas_YT111 morse code translator Version s" |
| 14 | - | I = Instance.new("Sound",owner.Character.Head)
|
| 14 | + | tl.TextSize = 30 |
| 15 | - | I.SoundId = "rbxassetid://203398422" |
| 15 | + | local tb = Instance.new("TextBox", screengui2)
|
| 16 | - | I.Volume = 6 |
| 16 | + | tb.Size = UDim2.new(1, 0, 1, 0) |
| 17 | - | M = Instance.new("Sound",owner.Character.Head)
|
| 17 | + | tb.BackgroundTransparency = 1 |
| 18 | - | M.SoundId = "rbxassetid://203398578" |
| 18 | + | tb.AnchorPoint = Vector2.new(0.5, 0.5) |
| 19 | - | M.Volume = 6 |
| 19 | + | tb.Position = UDim2.new(0.5, 0, 0.5, 0) |
| 20 | - | M.PlaybackSpeed = 1.125 |
| 20 | + | local tb2 = Instance.new("TextBox", screengui2)
|
| 21 | - | A = Instance.new("Sound",owner.Character.Head)
|
| 21 | + | tb2.Size = UDim2.new(0.25, 0, 0.25, 0) |
| 22 | - | A.SoundId = "rbxassetid://203343932" |
| 22 | + | tb2.BackgroundTransparency = 1 |
| 23 | - | A.Volume = 4 |
| 23 | + | tb2.TextTransparency = 0.35 |
| 24 | - | S = Instance.new("Sound",owner.Character.Head)
|
| 24 | + | tb2.AnchorPoint = Vector2.new(0.5, 0.75) |
| 25 | - | S.SoundId = "rbxassetid://203398806" |
| 25 | + | tb2.Position = UDim2.new(0.5, 0, 0.75, 0) |
| 26 | - | S.Volume = 4 |
| 26 | + | tb2.TextSize = 30 |
| 27 | - | B = Instance.new("Sound",owner.Character.Head)
|
| 27 | + | local dot = Instance.new("Sound", part1)
|
| 28 | - | B.SoundId = "rbxassetid://203344029" |
| 28 | + | dot.Volume = 2 |
| 29 | - | B.Volume = 4 |
| 29 | + | dot.SoundId = "rbxassetid://967014213" |
| 30 | - | X = Instance.new("Sound",owner.Character.Head)
|
| 30 | + | dot.Looped = true |
| 31 | - | X.SoundId = "rbxassetid://203399008" |
| 31 | + | tb.Text = "" |
| 32 | - | X.Volume = 4 |
| 32 | + | tb.TextSize = 40 |
| 33 | - | Y = Instance.new("Sound",owner.Character.Head)
|
| 33 | + | |
| 34 | - | Y.SoundId = "rbxassetid://203399043" |
| 34 | + | tb.Text = "" |
| 35 | - | Y.Volume = 6 |
| 35 | + | tb2.Text = Text |
| 36 | - | Z = Instance.new("Sound",owner.Character.Head)
|
| 36 | + | |
| 37 | - | Z.SoundId = "rbxassetid://203399096" |
| 37 | + | tb.Text = tb.Text.." " |
| 38 | - | Z.Volume = 4 |
| 38 | + | |
| 39 | - | C = Instance.new("Sound",owner.Character.Head)
|
| 39 | + | tb.Text = tb.Text.."...." |
| 40 | - | C.SoundId = "rbxassetid://203592149" |
| 40 | + | |
| 41 | - | C.Volume = 4 |
| 41 | + | tb.Text = tb.Text.."." |
| 42 | - | D = Instance.new("Sound",owner.Character.Head)
|
| 42 | + | |
| 43 | - | D.SoundId = "rbxassetid://203398237" |
| 43 | + | tb.Text = tb.Text..".-.." |
| 44 | - | D.Volume = 4 |
| 44 | + | |
| 45 | - | F = Instance.new("Sound",owner.Character.Head)
|
| 45 | + | tb.Text = tb.Text.."---" |
| 46 | - | F.SoundId = "rbxassetid://203398347" |
| 46 | + | |
| 47 | - | F.Volume = 4 |
| 47 | + | tb.Text = tb.Text..".--." |
| 48 | - | G = Instance.new("Sound",owner.Character.Head)
|
| 48 | + | |
| 49 | - | G.SoundId = "rbxassetid://203398372" |
| 49 | + | tb.Text = tb.Text..".." |
| 50 | - | G.Volume = 4 |
| 50 | + | |
| 51 | - | U = Instance.new("Sound",owner.Character.Head)
|
| 51 | + | tb.Text = tb.Text.."--" |
| 52 | - | U.SoundId = "rbxassetid://203398897" |
| 52 | + | |
| 53 | - | U.Volume = 4 |
| 53 | + | tb.Text = tb.Text..".-" |
| 54 | - | W = Instance.new("Sound",owner.Character.Head)
|
| 54 | + | |
| 55 | - | W.SoundId = "rbxassetid://20339898" |
| 55 | + | tb.Text = tb.Text.."...-" |
| 56 | - | W.Volume = 4 |
| 56 | + | |
| 57 | - | R= Instance.new("Sound",owner.Character.Head)
|
| 57 | + | tb.Text = tb.Text.."-" |
| 58 | - | R.SoundId = "rbxassetid://203398792" |
| 58 | + | |
| 59 | - | R.Volume = 4 |
| 59 | + | tb.Text = tb.Text.."-..." |
| 60 | - | S= Instance.new("Sound",owner.Character.Head)
|
| 60 | + | |
| 61 | - | S.SoundId = "rbxassetid://203398806" |
| 61 | + | tb.Text = tb.Text.."-.-." |
| 62 | - | S.Volume = 4 |
| 62 | + | |
| 63 | - | Q = Instance.new("Sound",owner.Character.Head)
|
| 63 | + | tb.Text = tb.Text.."-.." |
| 64 | - | Q.SoundId = "rbxassetid://203398755" |
| 64 | + | |
| 65 | - | Q.Volume = 4 |
| 65 | + | tb.Text = tb.Text.."..-." |
| 66 | - | J = Instance.new("Sound",owner.Character.Head)
|
| 66 | + | |
| 67 | - | J.SoundId = "rbxassetid://203398450" |
| 67 | + | tb.Text = tb.Text.."--." |
| 68 | - | J.Volume = 4 |
| 68 | + | |
| 69 | - | O = Instance.new("Sound",owner.Character.Head)
|
| 69 | + | tb.Text = tb.Text..".---" |
| 70 | - | O.SoundId = "rbxassetid://203398619" |
| 70 | + | |
| 71 | - | O.Volume = 4 |
| 71 | + | tb.Text = tb.Text.."-.-" |
| 72 | - | K = Instance.new("Sound",owner.Character.Head)
|
| 72 | + | |
| 73 | - | K.SoundId = "rbxassetid://203343994" |
| 73 | + | tb.Text = tb.Text.."-." |
| 74 | - | K.Volume = 4 |
| 74 | + | |
| 75 | - | N = Instance.new("Sound",owner.Character.Head)
|
| 75 | + | tb.Text = tb.Text.."--.-" |
| 76 | - | N.SoundId = "rbxassetid://203398599" |
| 76 | + | |
| 77 | - | N.Volume = 6 |
| 77 | + | tb.Text = tb.Text..".-." |
| 78 | - | N.PlaybackSpeed = 1.125 |
| 78 | + | |
| 79 | - | T = Instance.new("Sound",owner.Character.Head)
|
| 79 | + | tb.Text = tb.Text.."..." |
| 80 | - | T.SoundId = "rbxassetid://203398850" |
| 80 | + | |
| 81 | - | T.Volume = 4 |
| 81 | + | tb.Text = tb.Text.."..-" |
| 82 | - | V = Instance.new("Sound",owner.Character.Head)
|
| 82 | + | |
| 83 | - | V.SoundId = "rbxassetid://203398965" |
| 83 | + | tb.Text = tb.Text..".--" |
| 84 | - | V.Volume = 6 |
| 84 | + | |
| 85 | tb.Text = tb.Text.."-..-" | |
| 86 | elseif string.lower(Letter) == "y" then | |
| 87 | tb.Text = tb.Text.."-.--" | |
| 88 | - | H:Play() |
| 88 | + | |
| 89 | tb.Text = tb.Text.."--.." | |
| 90 | - | H:Stop() |
| 90 | + | elseif string.lower(Letter) == " " then |
| 91 | tb.Text = tb.Text.." / " | |
| 92 | - | E:Play() |
| 92 | + | |
| 93 | end | |
| 94 | - | E:Stop() |
| 94 | + | wait() |
| 95 | for Letter in string.gmatch(tb.Text, ".") do | |
| 96 | - | L:Play() |
| 96 | + | if Letter == "." then |
| 97 | dot:Play() | |
| 98 | - | L:Stop() |
| 98 | + | |
| 99 | dot:Stop() | |
| 100 | - | O:Play() |
| 100 | + | wait(0.25) |
| 101 | elseif Letter == "-" then | |
| 102 | - | O:Stop() |
| 102 | + | dot:Play() |
| 103 | wait(1) | |
| 104 | - | P:Play() |
| 104 | + | dot:Stop() |
| 105 | wait(0.25) | |
| 106 | - | P:Stop() |
| 106 | + | elseif Letter == " " then |
| 107 | wait(0.5) | |
| 108 | - | I:Play() |
| 108 | + | |
| 109 | end | |
| 110 | - | I:Stop() |
| 110 | + | end) |