Advertisement
_Thanh_Thy_Cute_

ROBLOX OVERRIDE CHAT FONT

Sep 22nd, 2021
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.94 KB | None | 0 0
  1. -- i make scripts that are so stupid, everyone would use them
  2. -- add me if you want to make a suggestion
  3. -- shawnjbragdon#0001
  4.  
  5. local Fonts = {
  6. [1] = {
  7. ["upper"] = {
  8. ["A"] = "A",
  9. ["B"] = "B",
  10. ["C"] = "C",
  11. ["D"] = "D",
  12. ["E"] = "E",
  13. ["F"] = "F",
  14. ["G"] = "G",
  15. ["H"] = "H",
  16. ["I"] = "I",
  17. ["J"] = "J",
  18. ["K"] = "K",
  19. ["L"] = "L",
  20. ["M"] = "M",
  21. ["N"] = "N",
  22. ["O"] = "O",
  23. ["P"] = "P",
  24. ["Q"] = "Q",
  25. ["R"] = "R",
  26. ["S"] = "S",
  27. ["T"] = "T",
  28. ["U"] = "U",
  29. ["V"] = "V",
  30. ["W"] = "W",
  31. ["X"] = "X",
  32. ["Y"] = "Y",
  33. ["Z"] = "Z",
  34. },
  35. ["lower"] = {
  36. ["a"] = "a",
  37. ["b"] = "b",
  38. ["c"] = "c",
  39. ["d"] = "d",
  40. ["e"] = "e",
  41. ["f"] = "f",
  42. ["g"] = "g",
  43. ["h"] = "h",
  44. ["i"] = "i",
  45. ["j"] = "j",
  46. ["k"] = "k",
  47. ["l"] = "l",
  48. ["m"] = "m",
  49. ["n"] = "n",
  50. ["o"] = "o",
  51. ["p"] = "p",
  52. ["q"] = "q",
  53. ["r"] = "r",
  54. ["s"] = "s",
  55. ["t"] = "t",
  56. ["u"] = "u",
  57. ["v"] = "v",
  58. ["w"] = "w",
  59. ["x"] = "x",
  60. ["y"] = "y",
  61. ["z"] = "z",
  62. }
  63. },
  64.  
  65. [2] = {
  66. -- ??????????????????????????
  67. ["upper"] = {
  68. ["A"] = "?",
  69. ["B"] = "?",
  70. ["C"] = "?",
  71. ["D"] = "?",
  72. ["E"] = "?",
  73. ["F"] = "?",
  74. ["G"] = "?",
  75. ["H"] = "?",
  76. ["I"] = "?",
  77. ["J"] = "?",
  78. ["K"] = "?",
  79. ["L"] = "?",
  80. ["M"] = "?",
  81. ["N"] = "?",
  82. ["O"] = "?",
  83. ["P"] = "?",
  84. ["Q"] = "?",
  85. ["R"] = "?",
  86. ["S"] = "?",
  87. ["T"] = "?",
  88. ["U"] = "?",
  89. ["V"] = "?",
  90. ["W"] = "?",
  91. ["X"] = "?",
  92. ["Y"] = "?",
  93. ["Z"] = "?",
  94. },
  95. ["lower"] = {
  96. ["a"] = "?",
  97. ["b"] = "?",
  98. ["c"] = "?",
  99. ["d"] = "?",
  100. ["e"] = "?",
  101. ["f"] = "?",
  102. ["g"] = "?",
  103. ["h"] = "?",
  104. ["i"] = "?",
  105. ["j"] = "?",
  106. ["k"] = "?",
  107. ["l"] = "?",
  108. ["m"] = "?",
  109. ["n"] = "?",
  110. ["o"] = "?",
  111. ["p"] = "?",
  112. ["q"] = "?",
  113. ["r"] = "?",
  114. ["s"] = "?",
  115. ["t"] = "?",
  116. ["u"] = "?",
  117. ["v"] = "?",
  118. ["w"] = "?",
  119. ["x"] = "?",
  120. ["y"] = "?",
  121. ["z"] = "?",
  122. },
  123. }
  124. }
  125.  
  126. local font = Fonts[1]
  127.  
  128. local ReplicatedStorage: ReplicatedStorage = game:GetService("ReplicatedStorage")
  129. local DefaultChatSystemChatEvents: Folder = ReplicatedStorage:WaitForChild("DefaultChatSystemChatEvents")
  130. local SayMessageRequest: RemoteEvent = DefaultChatSystemChatEvents:WaitForChild("SayMessageRequest")
  131. local rawmetatable = getrawmetatable(game)
  132. setreadonly(rawmetatable, false)
  133. local nc = rawmetatable.__namecall
  134.  
  135. rawmetatable.__namecall = function(self, ...)
  136. local tuple = {...}
  137. local namecallmethod = getnamecallmethod()
  138.  
  139. if not checkcaller() then
  140. if self and typeof and typeof(self) == "Instance" then
  141. if game.IsA(self, "RemoteEvent") and namecallmethod == "FireServer" then
  142. if tuple[2] == "All" then
  143. local text = "";
  144. for i = 1, string.len(tuple[1]) do
  145. local success, response = pcall(function()
  146. text = text .. font.upper[string.sub(tuple[1], i, i)]
  147. end)
  148. if not success then
  149. success, response = pcall(function()
  150. text = text .. font.lower[string.sub(tuple[1], i, i)]
  151. end)
  152. if not success then
  153. text = text .. string.sub(tuple[1], i, i)
  154. end
  155. end
  156. end
  157. tuple[1] = text
  158. end
  159. end
  160. end
  161. end
  162.  
  163. return nc(self, unpack(tuple))
  164. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement