Just_scriptss

Chat bypasser

Oct 28th, 2024
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.82 KB | None | 0 0
  1. -- Create the ScreenGui
  2. local screenGui = Instance.new("ScreenGui")
  3. screenGui.Name = "ChatGui"
  4. screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  5.  
  6. -- Create the Background Frame
  7. local background = Instance.new("Frame")
  8. background.Size = UDim2.new(0, 350, 0, 220)
  9. background.Position = UDim2.new(0.5, -175, 0.5, -110)
  10. background.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  11. background.BorderSizePixel = 0
  12. background.Parent = screenGui
  13.  
  14. -- Make the ScreenGui draggable
  15. local dragging, dragInput, dragStart, startPos
  16.  
  17. local function update(input)
  18. local delta = input.Position - dragStart
  19. background.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  20. end
  21.  
  22. background.InputBegan:Connect(function(input)
  23. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  24. dragging = true
  25. dragStart = input.Position
  26. startPos = background.Position
  27.  
  28. input.Changed:Connect(function()
  29. if input.UserInputState == Enum.UserInputState.End then
  30. dragging = false
  31. end
  32. end)
  33. end
  34. end)
  35.  
  36. background.InputChanged:Connect(function(input)
  37. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  38. dragInput = input
  39. end
  40. end)
  41.  
  42. game:GetService("UserInputService").InputChanged:Connect(function(input)
  43. if input == dragInput and dragging then
  44. update(input)
  45. end
  46. end)
  47.  
  48. -- Create the TextBox
  49. local textBox = Instance.new("TextBox")
  50. textBox.Size = UDim2.new(0, 300, 0, 40)
  51. textBox.Position = UDim2.new(0.5, -150, 0.5, -60)
  52. textBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  53. textBox.BorderSizePixel = 0
  54. textBox.PlaceholderText = "Bypass the fucking chat!"
  55. textBox.Parent = background
  56.  
  57. -- Animation for TextBox
  58. textBox.MouseEnter:Connect(function()
  59. textBox:TweenSize(UDim2.new(0, 310, 0, 45), "Out", "Quad", 0.2, true)
  60. end)
  61.  
  62. textBox.MouseLeave:Connect(function()
  63. textBox:TweenSize(UDim2.new(0, 300, 0, 40), "Out", "Quad", 0.2, true)
  64. end)
  65.  
  66. -- Create the Send Button
  67. local sendButton = Instance.new("TextButton")
  68. sendButton.Size = UDim2.new(0, 140, 0, 40)
  69. sendButton.Position = UDim2.new(0.5, -150, 0.5, 10)
  70. sendButton.Text = "Send"
  71. sendButton.BackgroundColor3 = Color3.fromRGB(0, 170, 255)
  72. sendButton.BorderSizePixel = 0
  73. sendButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  74. sendButton.Parent = background
  75.  
  76. -- Animation for Send Button
  77. sendButton.MouseEnter:Connect(function()
  78. sendButton:TweenSize(UDim2.new(0, 145, 0, 45), "Out", "Quad", 0.2, true)
  79. end)
  80.  
  81. sendButton.MouseLeave:Connect(function()
  82. sendButton:TweenSize(UDim2.new(0, 140, 0, 40), "Out", "Quad", 0.2, true)
  83. end)
  84.  
  85. -- Create the Clear Button
  86. local clearButton = Instance.new("TextButton")
  87. clearButton.Size = UDim2.new(0, 140, 0, 40)
  88. clearButton.Position = UDim2.new(0.5, 10, 0.5, 10)
  89. clearButton.Text = "Clear"
  90. clearButton.BackgroundColor3 = Color3.fromRGB(255, 85, 85)
  91. clearButton.BorderSizePixel = 0
  92. clearButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  93. clearButton.Parent = background
  94.  
  95. -- Animation for Clear Button
  96. clearButton.MouseEnter:Connect(function()
  97. clearButton:TweenSize(UDim2.new(0, 145, 0, 45), "Out", "Quad", 0.2, true)
  98. end)
  99.  
  100. clearButton.MouseLeave:Connect(function()
  101. clearButton:TweenSize(UDim2.new(0, 140, 0, 40), "Out", "Quad", 0.2, true)
  102. end)
  103.  
  104. -- Create the "Made by ONLYSCRIPTS" Label
  105. local madeByLabel = Instance.new("TextLabel")
  106. madeByLabel.Size = UDim2.new(0, 300, 0, 20)
  107. madeByLabel.Position = UDim2.new(0.5, -150, 0.5, 55)
  108. madeByLabel.Text = "Made by ONLYSCRIPTS"
  109. madeByLabel.BackgroundTransparency = 1
  110. madeByLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  111. madeByLabel.TextScaled = true
  112. madeByLabel.Parent = background
  113.  
  114. -- Function to convert normal text to a stylized font
  115. local function convertToFont(text)
  116. local fontMapping = {
  117. a = "Ạ̲ ̲", b = "Ḅ̲ ̲", c = "С̲ ̲", d = "Ḍ̲ ̲", e = "Ẹ̲ ̲",
  118. f = "F̲ ̲", g = "Ģ̲ ̲", h = "Ḥ̲ ̲", i = "Ị̲ ̲", j = "J̲ ̲",
  119. k = "Ḳ", l = "Ḷ", m = "Ṃ ̲", n = "Ṇ̲ ̲", o = "Ọ̲ ̲",
  120. p = "Р̲ ̲", q = "Q̲ ̲", r = "Ṛ̲ ̲", s = "Ṣ̲ ̲", t = "Ṭ̲ ̲",
  121. u = "Ụ̲ ̲", v = "Ṿ̲", w = "Ẉ", x = "Х", y = "Ỵ̲",
  122. z = "Ẓ"
  123. }
  124.  
  125. local convertedText = ""
  126.  
  127. for i = 1, #text do
  128. local char = text:sub(i, i)
  129. local lowerChar = char:lower()
  130. if fontMapping[lowerChar] then
  131. if char == lowerChar then
  132. convertedText = convertedText .. fontMapping[lowerChar]
  133. else
  134. convertedText = convertedText .. fontMapping[lowerChar]
  135. end
  136. else
  137. convertedText = convertedText .. char
  138. end
  139. end
  140.  
  141. return convertedText
  142. end
  143.  
  144. -- Function to send a chat message
  145. local function sendChatMessage(msg)
  146. local success, textChannels = pcall(function()
  147. return game:GetService("TextChatService").TextChannels
  148. end)
  149.  
  150. if success then
  151. -- New chat system
  152. game:GetService("TextChatService").TextChannels.RBXGeneral:SendAsync(msg)
  153. else
  154. -- Old chat system
  155. game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(msg, "All")
  156. end
  157. end
  158.  
  159. -- Connect the Send Button to send the message
  160. sendButton.MouseButton1Click:Connect(function()
  161. local message = textBox.Text
  162. if message ~= "" then
  163. local convertedMessage = convertToFont(message)
  164. sendChatMessage(convertedMessage)
  165. textBox.Text = "" -- Clear the TextBox after sending
  166. end
  167. end)
  168.  
  169. -- Connect the Clear Button to clear the TextBox
  170. clearButton.MouseButton1Click:Connect(function()
  171. textBox.Text = ""
  172. end)
Add Comment
Please, Sign In to add comment