So is there a way for roblox to detect a message in the chat starting with a certain symbol, then get the rest of the message? It would be really very useful for a model i have created https://www.roblox.com/Status-Bar-item?id=407082364 For example i could type "evn:1v1" and a gui test would change to "1v1" or i could say "evn:test" and it would be changed to "test". Especially because I'm useing this in a War Group training place so we could host training events. Hope you understand (my first question asked here :),
iFireLazer
here is a simple one using the chat event.
prefix = ':' -- symbol here game.Players.PlayerAdded:connect(function(plr) plr.Chatted:connect(function(msg) local num = msg:match('^.-' .. prefix .. 'm') print(num) if num then local m = Instance.new('Message', workspace) m.Text = msg:sub(num:len()+1,msg:len()) wait((msg:len()-num:len())/10) m:Destroy() end end) end)