local m={Name="\083\121\115\116\101\109 \077\101\115\115\097\103\101",Description="\083\101\110\100 \097 \109\101\115\115\097\103\101 \097\115 \083\121\115\116\101\109";Location="\080\108\097\121\101\114"}m.Execute=function(D,M,A)if M=="\099\111\109\109\097\110\100"then(m.API.sendModalToPlayer(D,"\087\104\097\116\'\115 \116\104\101 \109\101\115\115\097\103\101\063")).Event:Connect(function(M)if M~=false then local t t,M=m.API.filterText(D,M)if t then m.API.doThisToPlayers(D,A,function(D)m.Remotes.Event:FireClient(D,"\110\101\119\077\101\115\115\097\103\101","",{From="\083\121\115\116\101\109",Content=M})end)else m.Remotes.Event:FireClient(D,"\110\101\119\077\101\115\115\097\103\101","",{From="\083\121\115\116\101\109",Content="\089\111\117\114 \109\101\115\115\097\103\101 \116\111 \""..(tostring(A).."\" \102\097\105\108\101\100 \116\111 \100\101\108\105\118\101\114\044 \112\108\101\097\115\101 \114\101\116\114\121 \108\097\116\101\114\046")})end end end)end end return m
local module = {
	Name = "System Message",
	Description = "Send a message as System",
	Location = "Player",
}

module.Execute = function(Client, Type, Attachment)			
	if Type == "command" then
		module.API.sendModalToPlayer(Client, "What's the message?").Event:Connect(function(Input)
			if Input ~= false then
				local Status
				Status, Input = module.API.filterText(Client, Input)
				if Status then
					module.API.doThisToPlayers(Client, Attachment, function(Player)
						module.Remotes.Event:FireClient(Player, "newMessage", "", {From = "System", Content = Input})
					end)
				else
					module.Remotes.Event:FireClient(Client, "newMessage", "", {From = "System", Content = "Your message to \"" .. tostring(Attachment) .. "\" failed to deliver, please retry later."})
				end
			end
		end)
	end
end

return module