Hello, I have made a script which is simple, when the TextButton gets clicked another UI appears and a sound is meant to be played. I have done the UI appearing part, but for some reason the sound doesn’t get played at all. The output is empty, it doesn’t show any errors. I have checked my audio devices and they are all fine, I can hear the walking in game, jumping etc.
Script:
I believe the issue may be that you’re playing the audio after the player is teleported from the game. Try switching the order and put the :Play() before the :Teleport().
Also, you do not need to declare TeleportService = game:GetService(“TeleportService”) twice, you can simply put local TeleportService = game:GetService(“TeleportService”) and use TeleportService:Teleport(6800475728) as “TeleportService” was declared as a variable.