How to add an music id that plays an song to the server with an gui.
Textbox with music id in it then it plays to the whole server, if another song plays it removes that song and the other song overrides it.
How to add an music id that plays an song to the server with an gui.
Textbox with music id in it then it plays to the whole server, if another song plays it removes that song and the other song overrides it.
You could just use a remote event:
From the client side, you could have it so that once the user inputs a music id and presses a button/presses enter, you could probably just send that music ID via the remote event to the server, and have it so the server instances a sound, sets the SoundID of that instance to the one sent over by the client and play it via :Play()
For the overidding part, you could just add a conditional check which checks if the already existing sound instance is playing, and if so you could get rid of it and instance a new one instead, with the new ID. This is just theory so
By the way to monitor whether the player pressed enter you could connect the TextBox to the focus lost event, and only have the remote event fire if the first parameter of the .FocusLost event (which is described with more detail here) is true or false (seeing as it is a boolean).
Also next time change the post title to something less ambigious.
chika chiak slim shady can be the new title thanks!
I doubt that was really an improvement either but ok
Also if my answer helped please mark it as a solution
It was an legendary improvement, by the legends of the among us sus, styles of the legendary fallen heros, You see slim shady is an name taken by many among us players, it is enimens old ego, until the blast of the music fell and music went to shit, then among us heros started trying to save the day but marty mcflys delorean, went into robot mode and took the crewmates to 2018, and marty mcfly is the imposter, so they have to get strength in among us land where they get the intense among us rock to gain among us powers, to fight the imposter, once they fight the imposter slim shady appears, and slim shadys username is slim shady sus, so they fight together but slim shady is actuall the imposter, he has an gun. so yeah?
Okay, I’ll make it different.
edit: im going to get banned from the mickey mouse club for this arent i?