Ok, I feel a bit stupid but I’ve been away from lua for a bit.
Basically, I want to make it so if a player says stopmusic in the chatbox it stops playing music.
Basically all I need help with is how to detect the word in chat and which player did it.
[lua] if player.defaultmusic = 1 then local music = 1 else if player.defaultmusic = 2 then local music = 0[/lua]
Just showing how I’m going to be doing this, so if the player types stopmusic in the chatbox player.defaultmusic gets set to 2.
Any idea?. I put this in the newbie area because I feel like a noob right now :P.