game.Players.PlayerAdded:connect(function(plr) plr.Chatted:connect(function(m) local msg = string.lower(m) if msg:sub(1,7) == ":theme " then if plr:GetRankInGroup(4184921) >= 200 then if themechosen == false then themechosen = true theme = string.upper(msg:sub(8)) open = true event:FireAllClients(string.upper(msg:sub(8)),"open") end end end end
okay so i am trying to create a chat command where there would be 2 inputs, like :theme input1 input2, where input2 would be a countdown. how would i be able to find the 2nd input (time) in the string with :sub when the first input (the theme) doesn't have a consistent length?