Add sound to my typewriter gui

here is the typewrite script:

local text = ":D "
for i = 1, #text do
	script.Parent.Text.Text = string.sub(text, 1, i)
	wait(.01)
end
wait(2.5)
script.Parent.Text.Visible = false

Just include a line of code in the for loop that plays a sound vwhen a character was written

your_sound_reference:Play()

so where do i put the song id?

your_sound_reference is a variable that contains sound instance that is set up to paly the sound you want to play when a character is written.

Put the sound wherever you want, I usually put them in ReplicatedStorage. Reference that sound and play it