How do I insert a sound for my typewriting effect?

Additionally, I would recommend using task.wait() instead of wait() as it is better it almost every regard, and will reduce the amount of problems it can cause.

alright so it should look like this
Screenshot 2024-02-07 214256

Your almost there! The only thing you need to change to make that work is remove the id and quotation marks you put in the Play brackets. When playing a sound, you don’t need to put the sound id into the play brackets. The sound id should be put into the SoundId variable of the actual sound object

no! you can only put the rbxassetid from the SoundId inside of the Sound object

so do I put the sound name in the parentheses?

You put nothing in the parentheses. Not every function or action called by something that uses parentheses actually needs things in the parentheses, it really just depends on the function. But in this case, it should be completely blank. It should look like this:

script.Sound:Play()

all you do is fill the SoundId inside of the Sound object with the rbxassetid and youre good to go

1 Like

Ah I see now, it works, thanks

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.