How would I go about putting music at the end of rounds in TTT?

Hi all, first post here. I was wondering how I can go about adding music to my TTT server for the end of rounds. I am not very skilled with Lua, and I was just curious how I can go about doing it. I have searched around, yet all of the scripts/things I have found just won’t work… I’m not sure what I am doing wrong, but if someone could help me figure it out I will greatly appreciate it! :slight_smile: Thanks!

Welcome to FacePunch. I’m not entirely sure if this is the right place to post, but I’m not here to judge…

Here’s the one I give out to help people learn Lua:

You obviously need to change the sound names to ones that exist…

I made another that dynamically grabs sounds that exist in a directory and optimizes the entire system by setting up the tables in a SHARED environment, and then only sending the win type, and the index of the audio ( shortens the net message by a few characters ); your homework ( If you want to learn Lua and want to share with everyone else ) is to try and replicate that using file library ( file.Find :: ) for the 3 directories ( Innocent win, Traitor Win, Time Limit Up ) and posting it for others to learn from :slight_smile:

If you try doing the “homework” then when you get started, if you get stuck post in the Developer forum with the code.