SmileyS

Roblox Country Input

Oct 6th, 2021
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.64 KB | None | 0 0
  1. -- Placement : Top
  2. -- Variable List : Middle
  3. -- How to use : Bottom
  4.  
  5. --[[
  6. Frame/ ScreenGui
  7. ╰ TextBox
  8. ╰ Local Script
  9. --]]
  10.  
  11. local FlagsEmoji = {
  12. "🇦🇨"; "🇦🇩"; "🇦🇪"; "🇦🇫"; "🇦🇬"; "🇦🇮"; "🇦🇱"; "🇦🇲"; "🇦🇴"; "🇦🇶"; "🇦🇷"; "🇦🇸"; "🇦🇹"; "🇦🇺"; "🇦🇼"; "🇦🇽"; "🇦🇿";
  13. "🇧🇦"; "🇧🇧"; "🇧🇩"; "🇧🇪"; "🇧🇫"; "🇧🇬"; "🇧🇭"; "🇧🇮"; "🇧🇯"; "🇧🇱"; "🇧🇲"; "🇧🇳"; "🇧🇴"; "🇧🇶"; "🇧🇷"; "🇧🇸"; "🇧🇹"; "🇧🇼"; "🇧🇾"; "🇧🇿";
  14. "🇨🇦"; "🇨🇨"; "🇨🇩"; "🇨🇫"; "🇨🇬"; "🇨🇭"; "🇨🇮"; "🇨🇰"; "🇨🇱"; "🇨🇲"; "🇨🇳"; "🇨🇴"; "🇨🇷"; "🇨🇺"; "🇨🇻"; "🇨🇼"; "🇨🇽"; "🇨🇾"; "🇨🇿";
  15. "🇩🇪"; "🇩🇯"; "🇩🇰"; "🇩🇲"; "🇩🇴"; "🇩🇿";
  16. "🇪🇨"; "🇪🇪"; "🇪🇬"; "🇪🇭"; "🇪🇷"; "🇪🇸"; "🇪🇹"; "🇪🇺";
  17. "🇫🇮"; "🇫🇯"; "🇫🇰"; "🇫🇲"; "🇫🇴"; "🇫🇷";
  18. "🇬🇦"; "🇬🇧"; "🇬🇩"; "🇬🇪"; "🇬🇫"; "🇬🇬"; "🇬🇭"; "🇬🇮"; "🇬🇱"; "🇬🇲"; "🇬🇳"; "🇬🇵"; "🇬🇶"; "🇬🇷"; "🇬🇸"; "🇬🇹"; "🇬🇺"; "🇬🇼"; "🇬🇾";
  19. "🇭🇰"; "🇭🇳"; "🇭🇷"; "🇭🇹"; "🇭🇺";
  20. "🇮🇨"; "🇮🇩"; "🇮🇪"; "🇮🇱"; "🇮🇲"; "🇮🇳"; "🇮🇴"; "🇮🇶"; "🇮🇷"; "🇮🇸"; "🇮🇹";
  21. "🇯🇪"; "🇯🇲"; "🇯🇴"; "🇯🇵";
  22. "🇰🇪"; "🇰🇬"; "🇰🇭"; "🇰🇮"; "🇰🇲"; "🇰🇳"; "🇰🇵"; "🇰🇷"; "🇰🇼"; "🇰🇾"; "🇰🇿";
  23. "🇱🇦"; "🇱🇧"; "🇱🇨"; "🇱🇮"; "🇱🇰"; "🇱🇷"; "🇱🇸"; "🇱🇹"; "🇱🇺"; "🇱🇻"; "🇱🇾";
  24. "🇲🇦"; "🇲🇨"; "🇲🇩"; "🇲🇪"; "🇲🇬"; "🇲🇭"; "🇲🇰"; "🇲🇱"; "🇲🇲"; "🇲🇳"; "🇲🇴"; "🇲🇵"; "🇲🇶"; "🇲🇷"; "🇲🇸"; "🇲🇹"; "🇲🇺"; "🇲🇻"; "🇲🇼"; "🇲🇽"; "🇲🇾"; "🇲🇿";
  25. "🇳🇦"; "🇳🇨"; "🇳🇪"; "🇳🇫"; "🇳🇬"; "🇳🇮"; "🇳🇱"; "🇳🇴"; "🇳🇵"; "🇳🇷"; "🇳🇺"; "🇳🇿";
  26. "🇴🇲"; "🇵🇦"; "🇵🇪"; "🇵🇫"; "🇵🇬"; "🇵🇭"; "🇵🇰"; "🇵🇱"; "🇵🇲"; "🇵🇳"; "🇵🇷"; "🇵🇹"; "🇵🇼"; "🇵🇾";
  27. "🇶🇦";
  28. "🇷🇪"; "🇷🇴"; "🇷🇸"; "🇷🇺"; "🇷🇼";
  29. "🇸🇦"; "🇸🇧"; "🇸🇨"; "🇸🇩"; "🇸🇪"; "🇸🇬"; "🇸🇭"; "🇸🇮"; "🇸🇰"; "🇸🇱"; "🇸🇲"; "🇸🇳"; "🇸🇴"; "🇸🇷"; "🇸🇸"; "🇸🇹"; "🇸🇻"; "🇸🇽"; "🇸🇾"; "🇸🇿";
  30. "🇹🇦"; "🇹🇨"; "🇹🇩"; "🇹🇫"; "🇹🇬"; "🇹🇭"; "🇹🇯"; "🇹🇰"; "🇹🇱"; "🇹🇲"; "🇹🇳"; "🇹🇴"; "🇹🇷"; "🇹🇹"; "🇹🇻"; "🇹🇼"; "🇹🇿";
  31. "🇺🇦"; "🇺🇬"; "🇺🇸"; "🇺🇾"; "🇺🇿";
  32. "🇻🇦"; "🇻🇨"; "🇻🇪"; "🇻🇬"; "🇻🇮"; "🇻🇳"; "🇻🇺";
  33. "🇼🇫"; "🇼🇸";
  34. "🇽🇰";
  35. "🇾🇪"; "🇾🇹";
  36. "🇿🇦"; "🇿🇲"; "🇿🇼"
  37.  
  38. }
  39. local Flags_Name = {
  40.  
  41. -- a
  42.  
  43. "afghanistan",
  44. "albania",
  45. "algeria",
  46. "andorra",
  47. "angola",
  48. "antigua and barbuda",
  49. "argentina",
  50. "armenia",
  51. "aruba",
  52. "australia",
  53. "austria",
  54. "azerbaijan",
  55.  
  56. -- b
  57. "bahamas, the",
  58. "bahrain",
  59. "bangladesh",
  60. "barbados",
  61. "belarus",
  62. "belgium",
  63. "belize",
  64. "benin",
  65. "bhutan",
  66. "bolivia",
  67. "bosnia and herzegovina",
  68. "botswana",
  69. "brazil",
  70. "brunei",
  71. "bulgaria",
  72. "burkina faso",
  73. "burma",
  74. "burundi",
  75.  
  76. -- c
  77.  
  78. "cambodia",
  79. "cameroon",
  80. "canada",
  81. "cabo verde",
  82. "central african republic",
  83. "chad",
  84. "chile",
  85. "china",
  86. "colombia",
  87. "comoros",
  88. "congo, democratic republic of the",
  89. "congo, republic of the",
  90. "costa rica",
  91. "cote d'ivoire",
  92. "croatia",
  93. "cuba",
  94. "curacao",
  95. "cyprus",
  96. "czechia",
  97.  
  98. -- d
  99. "denmark",
  100. "djibouti",
  101. "dominica",
  102. "dominican republic",
  103.  
  104. -- e
  105. "east timor",
  106. "ecuador",
  107. "egypt",
  108. "el salvador",
  109. "equatorial guinea",
  110. "eritrea",
  111. "estonia",
  112. "ethiopia",
  113.  
  114. -- f
  115. "fiji",
  116. "finland",
  117. "france",
  118.  
  119. -- g
  120. "gabon",
  121. "gambia, the",
  122. "georgia",
  123. "germany",
  124. "ghana",
  125. "greece",
  126. "grenada",
  127. "guatemala",
  128. "guinea",
  129. "guinea-bissau",
  130. "guyana",
  131.  
  132. -- h
  133. "haiti",
  134. "holy see",
  135. "honduras",
  136. "hong kong",
  137. "hungary",
  138.  
  139. -- i
  140. "iceland",
  141. "india",
  142. "indonesia",
  143. "iran",
  144. "iraq",
  145. "ireland",
  146. "israel",
  147. "italy",
  148.  
  149. -- j
  150. "jamaica",
  151. "japan",
  152. "jordan",
  153.  
  154. -- k
  155. "kazakhstan",
  156. "kenya",
  157. "kiribati",
  158. "korea, north",
  159. "korea, south",
  160. "kosovo",
  161. "kuwait",
  162. "kyrgyzstan",
  163.  
  164. -- l
  165. "laos",
  166. "latvia",
  167. "lebanon",
  168. "lesotho",
  169. "liberia",
  170. "libya",
  171. "liechtenstein",
  172. "lithuania",
  173. "luxembourg",
  174.  
  175. -- m
  176. "macau",
  177. "macedonia",
  178. "madagascar",
  179. "malawi",
  180. "malaysia",
  181. "maldives",
  182. "mali",
  183. "malta",
  184. "marshall islands",
  185. "mauritania",
  186. "mauritius",
  187. "mexico",
  188. "micronesia",
  189. "moldova",
  190. "monaco",
  191. "mongolia",
  192. "montenegro",
  193. "morocco",
  194. "mozambique",
  195.  
  196. -- n
  197. "namibia",
  198. "nauru",
  199. "nepal",
  200. "netherlands",
  201. "new zealand",
  202. "nicaragua",
  203. "niger",
  204. "nigeria",
  205. "north korea",
  206. "norway",
  207.  
  208. -- o
  209. "oman",
  210.  
  211. -- p
  212. "pakistan",
  213. "palau",
  214. "panama",
  215. "papua new guinea",
  216. "paraguay",
  217. "peru",
  218. "philippines",
  219. "poland",
  220. "portugal",
  221.  
  222. -- q
  223. "qatar",
  224.  
  225. -- r
  226. "romania",
  227. "russia",
  228. "rwanda",
  229.  
  230. -- s
  231. "saint kitts and nevis",
  232. "saint lucia",
  233. "saint vincent and the grenadines",
  234. "samoa",
  235. "san marino",
  236. "sao tome and principe",
  237. "saudi arabia",
  238. "senegal",
  239. "serbia",
  240. "seychelles",
  241. "sierra leone",
  242. "singapore",
  243. "sint maarten",
  244. "slovakia",
  245. "slovenia",
  246. "solomon islands",
  247. "somalia",
  248. "south africa",
  249. "south korea",
  250. "south sudan",
  251. "spain",
  252. "sri lanka",
  253. "sudan",
  254. "suriname",
  255. "swaziland",
  256. "sweden",
  257. "switzerland",
  258. "syria",
  259.  
  260. -- t
  261. "taiwan",
  262. "tajikistan",
  263. "tanzania",
  264. "thailand",
  265. "timor-leste",
  266. "togo",
  267. "tonga",
  268. "trinidad and tobago",
  269. "tunisia",
  270. "turkey",
  271. "turkmenistan",
  272. "tuvalu",
  273.  
  274. -- u
  275. "uganda",
  276. "ukraine",
  277. "united arab emirates",
  278. "united kingdom",
  279. "uruguay",
  280. "uzbekistan",
  281.  
  282. -- v
  283. "vanuatu",
  284. "venezuela",
  285. "vietnam",
  286.  
  287. -- y
  288. "yemen",
  289.  
  290. -- z
  291. "zambia",
  292. "zimbabwe"
  293. }
  294.  
  295. -- || Coding Example
  296. -- Emoji
  297. while wait(0.1) do
  298. for key, CountryEmoji in pairs(FlagsEmoji) do
  299. if script.Parent.Text == CountryEmoji then
  300. print("Country emoji found!")
  301. end
  302. end
  303. end
  304.  
  305. -- Text
  306. while wait(0.1) do
  307. for key, CountryText in pairs(Flags_Name) do
  308. if string.lower(script.Parent.Text) == CountryText then
  309. print("Country name found!")
  310. end
  311. end
  312. end
Advertisement
Add Comment
Please, Sign In to add comment