Third parameter of MuteSpeaker not working?

I’ve made a simple command for my admin system to mute players and for some reason when trying to mute a player for a set duration (ex. 30 seconds) the player is permanently muted and is never unmuted. The duration parameter is in seconds (doesnt include the actual ‘seconds’ in it, only the number value) so I don’t understand why it’s not muting for the specified duration. Any help is appreciated!

chatService:GetChannel(“All”):MuteSpeaker(target, reason, duration)

Try printing duration right before muting and make sure it isn’t nil or 0. (nil and 0 make the mute indefinite)