fe chat art script - Pastebin.com (2024)

  1. -- FE Chat Art Script | Draw or type word to chat it as a drawing

  2. local ReplicatedStorage = game:GetService("ReplicatedStorage")

  3. local SayMessageRequest = ReplicatedStorage:FindFirstChild("SayMessageRequest", true)

  4. if SayMessageRequest then

  5. local okPressed = false

  6. local cancelPressed = false

  7. local gui = Instance.new("ScreenGui")

  8. gui.Parent = game.Players.LocalPlayer.PlayerGui

  9. local frame = Instance.new("Frame")

  10. frame.Size = UDim2.new(0, 210, 0, 210)

  11. frame.Position = UDim2.new(0.5, -300, 0.5, -350)

  12. frame.Parent = gui

  13. local squareSize = 30

  14. local squares = {}

  15. for i = 1, 7 do

  16. squares[i] = {}

  17. for j = 1, 7 do

  18. local square = Instance.new("TextButton")

  19. square.Size = UDim2.new(0, squareSize, 0, squareSize)

  20. square.Position = UDim2.new(0, (j - 1) * squareSize, 0, (i - 1) * squareSize)

  21. square.BackgroundColor3 = Color3.new(1, 1, 1)

  22. square.Text = ""

  23. square.Parent = frame

  24. square.MouseButton1Down:Connect(function()

  25. if square.BackgroundColor3 == Color3.new(1, 1, 1) then

  26. square.BackgroundColor3 = Color3.new(0, 0, 0)

  27. else

  28. square.BackgroundColor3 = Color3.new(1, 1, 1)

  29. end

  30. end)

  31. squares[i][j] = square

  32. end

  33. end

  34. local printButton = Instance.new("TextButton")

  35. printButton.Size = UDim2.new(0, 210, 0, 30)

  36. printButton.Position = UDim2.new(0.5, -300, 0.86, -370)

  37. printButton.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)

  38. printButton.TextColor3 = Color3.new(0, 0, 0)

  39. printButton.Text = "Draw to chat!"

  40. printButton.TextScaled = true

  41. printButton.Parent = gui

  42. printButton.MouseButton1Down:Connect(function()

  43. for i = 1, 7 do

  44. local row = ""

  45. for j = 1, 7 do

  46. if squares[i][j].BackgroundColor3 == Color3.new(1, 1, 1) then

  47. row = row .. "⚪"

  48. else

  49. row = row .. "⚫"

  50. end

  51. end

  52. if SayMessageRequest then

  53. SayMessageRequest:FireServer(row, "All")

  54. end

  55. end

  56. end)

  57. local filereadButton = Instance.new("TextButton")

  58. filereadButton.Size = UDim2.new(0, 210, 0, 30)

  59. filereadButton.Position = UDim2.new(0.5, -300, 0.93, -370)

  60. filereadButton.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)

  61. filereadButton.TextColor3 = Color3.new(0, 0, 0)

  62. filereadButton.Text = "Import from file"

  63. filereadButton.TextScaled = true

  64. filereadButton.Parent = gui

  65. local filewriteButton = Instance.new("TextButton")

  66. filewriteButton.Size = UDim2.new(0, 210, 0, 30)

  67. filewriteButton.Position = UDim2.new(0.5, -300, 1, -370)

  68. filewriteButton.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)

  69. filewriteButton.TextColor3 = Color3.new(0, 0, 0)

  70. filewriteButton.Text = "Export to file"

  71. filewriteButton.TextScaled = true

  72. filewriteButton.Parent = gui

  73. local textBox = Instance.new("TextBox")

  74. textBox.Size = UDim2.new(0, 210, 0, 30)

  75. textBox.Position = UDim2.new(0.5, -300, 0.93, -370)

  76. textBox.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)

  77. textBox.TextColor3 = Color3.new(0, 0, 0)

  78. textBox.Text = "File name"

  79. textBox.Visible = false

  80. textBox.TextScaled = true

  81. textBox.Parent = gui

  82. local okButton = Instance.new("TextButton")

  83. okButton.Size = UDim2.new(0, 105, 0, 30)

  84. okButton.Position = UDim2.new(0.5, -300, 1, -370)

  85. okButton.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)

  86. okButton.TextColor3 = Color3.new(0, 0, 0)

  87. okButton.Text = "OK"

  88. okButton.Visible = false

  89. okButton.TextScaled = true

  90. okButton.Parent = gui

  91. local cancelButton = Instance.new("TextButton")

  92. cancelButton.Size = UDim2.new(0, 105, 0, 30)

  93. cancelButton.Position = UDim2.new(0.58, -300, 1, -370)

  94. cancelButton.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)

  95. cancelButton.TextColor3 = Color3.new(0, 0, 0)

  96. cancelButton.Text = "Cancel"

  97. cancelButton.Visible = false

  98. cancelButton.TextScaled = true

  99. cancelButton.Parent = gui

  100. okButton.MouseButton1Down:Connect(function()

  101. okPressed = true

  102. end)

  103. cancelButton.MouseButton1Down:Connect(function()

  104. cancelPressed = true

  105. end)

  106. filereadButton.MouseButton1Down:Connect(function()

  107. while true do

  108. filewriteButton.Visible = false

  109. textBox.Visible = true

  110. okButton.Visible = true

  111. cancelButton.Visible = true

  112. while okPressed == false do

  113. if cancelPressed == true then

  114. break

  115. end

  116. wait(0)

  117. end

  118. okPressed = false

  119. if cancelPressed == false then

  120. local file

  121. local fileName

  122. local name = textBox.Text

  123. if name:sub(-3) == '.cd' then

  124. pcall(function() file = readfile(name) end)

  125. fileName = name

  126. else

  127. pcall(function() file = readfile(name..'.cd') end)

  128. fileName = name..'.cd'

  129. end

  130. if file then

  131. if string.len(file) ~= 49 then

  132. textBox.Text = 'This file is corrupted'

  133. else

  134. err = false

  135. for i = 1, 49 do

  136. local char = string.sub(file, i, i)

  137. if char ~= "0" and char ~= "1" then

  138. textBox.Text = 'This file is corrupted'

  139. err = true

  140. break

  141. end

  142. end

  143. if err == false then

  144. lol = 1

  145. for i = 1, 7 do

  146. for j = 1, 7 do

  147. if string.sub(file, lol, lol) == '0' then

  148. squares[i][j].BackgroundColor3 = Color3.new(0, 0, 0)

  149. else

  150. squares[i][j].BackgroundColor3 = Color3.new(1, 1, 1)

  151. end

  152. lol = lol + 1

  153. end

  154. end

  155. cancelPressed = false

  156. textBox.Visible = false

  157. okButton.Visible = false

  158. cancelButton.Visible = false

  159. filewriteButton.Visible = true

  160. break

  161. end

  162. end

  163. else

  164. textBox.Text = 'Cannot locate file "'..fileName..'". Does your executor have workspace folder?'

  165. end

  166. else

  167. cancelPressed = false

  168. textBox.Visible = false

  169. okButton.Visible = false

  170. cancelButton.Visible = false

  171. filewriteButton.Visible = true

  172. break

  173. end

  174. end

  175. end)

  176. filewriteButton.MouseButton1Down:Connect(function()

  177. data = ''

  178. filereadButton.Visible = false

  179. filewriteButton.Visible = false

  180. textBox.Visible = true

  181. okButton.Visible = true

  182. cancelButton.Visible = true

  183. while okPressed == false do

  184. if cancelPressed == true then

  185. break

  186. end

  187. wait(0)

  188. end

  189. okPressed = false

  190. if cancelPressed == false then

  191. local fileName

  192. local name = textBox.Text

  193. if name:sub(-3) == '.cd' then

  194. fileName = name

  195. else

  196. fileName = name..'.cd'

  197. end

  198. for i = 1, 7 do

  199. for j = 1, 7 do

  200. if squares[i][j].BackgroundColor3 == Color3.new(0, 0, 0) then

  201. data = data..'0'

  202. else

  203. data = data..'1'

  204. end

  205. end

  206. end

  207. writefile(fileName, data)

  208. end

  209. cancelPressed = false

  210. textBox.Visible = false

  211. okButton.Visible = false

  212. cancelButton.Visible = false

  213. filereadButton.Visible = true

  214. filewriteButton.Visible = true

  215. end)

  216. local letters = {

  217. ["a"] = {

  218. "⬛⬛⬛⬛⬛",

  219. "⬛🔴🔴🔴⬛",

  220. "⬛🔴⬛🔴⬛",

  221. "⬛🔴🔴🔴⬛",

  222. "⬛🔴⬛🔴⬛",

  223. "⬛🔴⬛🔴⬛",

  224. "⬛⬛⬛⬛⬛",

  225. },

  226. ["b"] = {

  227. "⬛⬛⬛⬛⬛",

  228. "⬛🔴🔴🔴⬛",

  229. "⬛🔴⬛🔴⬛",

  230. "⬛🔴🔴⬛⬛",

  231. "⬛🔴⬛🔴⬛",

  232. "⬛🔴🔴🔴⬛",

  233. "⬛⬛⬛⬛⬛",

  234. },

  235. ["c"] = {

  236. "⬛⬛⬛⬛⬛",

  237. "⬛🔴🔴🔴⬛",

  238. "⬛🔴⬛⬛⬛",

  239. "⬛🔴⬛⬛⬛",

  240. "⬛🔴⬛⬛⬛",

  241. "⬛🔴🔴🔴⬛",

  242. "⬛⬛⬛⬛⬛",

  243. },

  244. ["d"] = {

  245. "⬛⬛⬛⬛⬛",

  246. "⬛🔴🔴⬛⬛",

  247. "⬛🔴⬛🔴⬛",

  248. "⬛🔴⬛🔴⬛",

  249. "⬛🔴⬛🔴⬛",

  250. "⬛🔴🔴⬛⬛",

  251. "⬛⬛⬛⬛⬛",

  252. },

  253. ["e"] = {

  254. "⬛⬛⬛⬛⬛",

  255. "⬛🔴🔴🔴⬛",

  256. "⬛🔴⬛⬛⬛",

  257. "⬛🔴🔴🔴⬛",

  258. "⬛🔴⬛⬛⬛",

  259. "⬛🔴🔴🔴⬛",

  260. "⬛⬛⬛⬛⬛",

  261. },

  262. ["f"] = {

  263. "⬛⬛⬛⬛⬛",

  264. "⬛🔴🔴🔴⬛",

  265. "⬛🔴⬛⬛⬛",

  266. "⬛🔴🔴🔴⬛",

  267. "⬛🔴⬛⬛⬛",

  268. "⬛🔴⬛⬛⬛",

  269. "⬛⬛⬛⬛⬛",

  270. },

  271. ["g"] = {

  272. "⬛⬛⬛⬛⬛",

  273. "⬛🔴🔴🔴⬛",

  274. "⬛🔴⬛⬛⬛",

  275. "⬛🔴⬛🔴⬛",

  276. "⬛🔴⬛🔴⬛",

  277. "⬛🔴🔴🔴⬛",

  278. "⬛⬛⬛⬛⬛",

  279. },

  280. ["h"] = {

  281. "⬛⬛⬛⬛⬛",

  282. "⬛🔴⬛🔴⬛",

  283. "⬛🔴⬛🔴⬛",

  284. "⬛🔴🔴🔴⬛",

  285. "⬛🔴⬛🔴⬛",

  286. "⬛🔴⬛🔴⬛",

  287. "⬛⬛⬛⬛⬛",

  288. },

  289. ["i"] = {

  290. "⬛⬛⬛⬛⬛",

  291. "⬛🔴🔴🔴⬛",

  292. "⬛⬛🔴⬛⬛",

  293. "⬛⬛🔴⬛⬛",

  294. "⬛⬛🔴⬛⬛",

  295. "⬛🔴🔴🔴⬛",

  296. "⬛⬛⬛⬛⬛",

  297. },

  298. ["j"] = {

  299. "⬛⬛⬛⬛⬛",

  300. "⬛🔴🔴🔴⬛",

  301. "⬛⬛⬛🔴⬛",

  302. "⬛⬛⬛🔴⬛",

  303. "⬛⬛⬛🔴⬛",

  304. "⬛🔴🔴⬛⬛",

  305. "⬛⬛⬛⬛⬛",

  306. },

  307. ["k"] = {

  308. "⬛⬛⬛⬛⬛",

  309. "⬛🔴⬛🔴⬛",

  310. "⬛🔴⬛🔴⬛",

  311. "⬛🔴🔴⬛⬛",

  312. "⬛🔴⬛🔴⬛",

  313. "⬛🔴⬛🔴⬛",

  314. "⬛⬛⬛⬛⬛",

  315. },

  316. ["l"] = {

  317. "⬛⬛⬛⬛⬛",

  318. "⬛🔴⬛⬛⬛",

  319. "⬛🔴⬛⬛⬛",

  320. "⬛🔴⬛⬛⬛",

  321. "⬛🔴⬛⬛⬛",

  322. "⬛🔴🔴🔴⬛",

  323. "⬛⬛⬛⬛⬛",

  324. },

  325. ["m"] = {

  326. "⬛⬛⬛⬛⬛",

  327. "🔴⬛⬛⬛🔴",

  328. "🔴🔴⬛🔴🔴",

  329. "🔴⬛🔴⬛🔴",

  330. "🔴⬛⬛⬛🔴",

  331. "🔴⬛⬛⬛🔴",

  332. "⬛⬛⬛⬛⬛",

  333. },

  334. ["n"] = {

  335. "⬛⬛⬛⬛⬛",

  336. "⬛🔴🔴🔴⬛",

  337. "⬛🔴⬛🔴⬛",

  338. "⬛🔴⬛🔴⬛",

  339. "⬛🔴⬛🔴⬛",

  340. "⬛🔴⬛🔴⬛",

  341. "⬛⬛⬛⬛⬛",

  342. },

  343. ["o"] = {

  344. "⬛⬛⬛⬛⬛",

  345. "⬛🔴🔴🔴⬛",

  346. "⬛🔴⬛🔴⬛",

  347. "⬛🔴⬛🔴⬛",

  348. "⬛🔴⬛🔴⬛",

  349. "⬛🔴🔴🔴⬛",

  350. "⬛⬛⬛⬛⬛",

  351. },

  352. ["p"] = {

  353. "⬛⬛⬛⬛⬛",

  354. "⬛🔴🔴🔴⬛",

  355. "⬛🔴⬛🔴⬛",

  356. "⬛🔴🔴🔴⬛",

  357. "⬛🔴⬛⬛⬛",

  358. "⬛🔴⬛⬛⬛",

  359. "⬛⬛⬛⬛⬛",

  360. },

  361. ["q"] = {

  362. "⬛⬛⬛⬛⬛",

  363. "⬛🔴🔴🔴⬛",

  364. "⬛🔴⬛🔴⬛",

  365. "⬛🔴⬛🔴⬛",

  366. "⬛🔴🔴🔴⬛",

  367. "⬛⬛⬛🔴⬛",

  368. "⬛⬛⬛⬛⬛",

  369. },

  370. ["r"] = {

  371. "⬛⬛⬛⬛⬛",

  372. "⬛🔴🔴🔴⬛",

  373. "⬛🔴⬛🔴⬛",

  374. "⬛🔴🔴🔴⬛",

  375. "⬛🔴🔴⬛⬛",

  376. "⬛🔴⬛🔴⬛",

  377. "⬛⬛⬛⬛⬛",

  378. },

  379. ["s"] = {

  380. "⬛⬛⬛⬛⬛",

  381. "⬛🔴🔴🔴⬛",

  382. "⬛🔴⬛⬛⬛",

  383. "⬛⬛🔴⬛⬛",

  384. "⬛⬛⬛🔴⬛",

  385. "⬛🔴🔴🔴⬛",

  386. "⬛⬛⬛⬛⬛",

  387. },

  388. ["t"] = {

  389. "⬛⬛⬛⬛⬛",

  390. "⬛🔴🔴🔴⬛",

  391. "⬛⬛🔴⬛⬛",

  392. "⬛⬛🔴⬛⬛",

  393. "⬛⬛🔴⬛⬛",

  394. "⬛⬛🔴⬛⬛",

  395. "⬛⬛⬛⬛⬛",

  396. },

  397. ["u"] = {

  398. "⬛⬛⬛⬛⬛",

  399. "⬛🔴⬛🔴⬛",

  400. "⬛🔴⬛🔴⬛",

  401. "⬛🔴⬛🔴⬛",

  402. "⬛🔴⬛🔴⬛",

  403. "⬛🔴🔴🔴⬛",

  404. "⬛⬛⬛⬛⬛",

  405. },

  406. ["v"] = {

  407. "⬛⬛⬛⬛⬛",

  408. "⬛🔴⬛🔴⬛",

  409. "⬛🔴⬛🔴⬛",

  410. "⬛🔴⬛🔴⬛",

  411. "⬛🔴⬛🔴⬛",

  412. "⬛⬛🔴⬛⬛",

  413. "⬛⬛⬛⬛⬛",

  414. },

  415. ["w"] = {

  416. "⬛⬛⬛⬛⬛",

  417. "⬛🔴⬛🔴⬛",

  418. "⬛🔴⬛🔴⬛",

  419. "⬛🔴🔴🔴⬛",

  420. "⬛🔴⬛🔴⬛",

  421. "⬛⬛⬛⬛⬛",

  422. "⬛⬛⬛⬛⬛",

  423. },

  424. ["x"] = {

  425. "⬛⬛⬛⬛⬛",

  426. "⬛🔴⬛🔴⬛",

  427. "⬛🔴⬛🔴⬛",

  428. "⬛⬛🔴⬛⬛",

  429. "⬛🔴⬛🔴⬛",

  430. "⬛🔴⬛🔴⬛",

  431. "⬛⬛⬛⬛⬛",

  432. },

  433. ["y"] = {

  434. "⬛⬛⬛⬛⬛",

  435. "⬛🔴⬛🔴⬛",

  436. "⬛🔴⬛🔴⬛",

  437. "⬛⬛🔴⬛⬛",

  438. "⬛⬛🔴⬛⬛",

  439. "⬛⬛🔴⬛⬛",

  440. "⬛⬛⬛⬛⬛",

  441. },

  442. ["z"] = {

  443. "⬛⬛⬛⬛⬛",

  444. "⬛🔴🔴🔴⬛",

  445. "⬛⬛⬛🔴⬛",

  446. "⬛⬛🔴⬛⬛",

  447. "⬛🔴⬛⬛⬛",

  448. "⬛🔴🔴🔴⬛",

  449. "⬛⬛⬛⬛⬛",

  450. },

  451. [" "] = {

  452. "⬛⬛⬛⬛⬛",

  453. "⬛⬛⬛⬛⬛",

  454. "⬛⬛⬛⬛⬛",

  455. "⬛⬛⬛⬛⬛",

  456. "⬛⬛⬛⬛⬛",

  457. "⬛⬛⬛⬛⬛",

  458. "⬛⬛⬛⬛⬛",

  459. }

  460. }

  461. local gui = Instance.new("ScreenGui")

  462. gui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")

  463. local frame = Instance.new("Frame")

  464. frame.Size = UDim2.new(0, 200, 0, 100)

  465. frame.Position = UDim2.new(1, -220, 0, 20)

  466. frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  467. frame.BorderSizePixel = 0

  468. frame.Parent = gui

  469. local textBox = Instance.new("TextBox")

  470. textBox.Size = UDim2.new(1, 0, 0.5, 0)

  471. textBox.Position = UDim2.new(0, 0, 0, 0)

  472. textBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  473. textBox.BorderSizePixel = 0

  474. textBox.TextColor3 = Color3.fromRGB(0, 0, 0)

  475. textBox.Text = "Write a word"

  476. textBox.Parent = frame

  477. local button = Instance.new("TextButton")

  478. button.Size = UDim2.new(1, 0, 0.5, 0)

  479. button.Position = UDim2.new(0, 0, 0.5, 0)

  480. button.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  481. button.BorderSizePixel = 0

  482. button.TextColor3 = Color3.fromRGB(0, 0, 0)

  483. button.Text = "Draw to chat"

  484. button.Parent = frame

  485. local function printTextBoxContents()

  486. local message = textBox.Text

  487. local final = {"","","","","","",""}

  488. for i = 1, #message do

  489. local l = message:sub(i,i)

  490. for x, line in pairs(letters[string.lower(l)]) do

  491. final[x] = final[x] .. line

  492. end

  493. end

  494. for _, v in pairs(final) do

  495. game:GetService("ReplicatedStorage")["DefaultChatSystemChatEvents"].SayMessageRequest:FireServer(v, "All")

  496. end

  497. end

  498. button.MouseButton1Click:Connect(printTextBoxContents)

  499. else

  500. print("Not working? Try a game that has the default roblox chat")

  501. end

fe chat art script - Pastebin.com (2024)

References

Top Articles
Latest Posts
Article information

Author: Fr. Dewey Fisher

Last Updated:

Views: 6113

Rating: 4.1 / 5 (42 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Fr. Dewey Fisher

Birthday: 1993-03-26

Address: 917 Hyun Views, Rogahnmouth, KY 91013-8827

Phone: +5938540192553

Job: Administration Developer

Hobby: Embroidery, Horseback riding, Juggling, Urban exploration, Skiing, Cycling, Handball

Introduction: My name is Fr. Dewey Fisher, I am a powerful, open, faithful, combative, spotless, faithful, fair person who loves writing and wants to share my knowledge and understanding with you.