Advertisement
Inoob8C

chathax gui v4

Apr 3rd, 2022
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.61 KB | None | 0 0
  1.  
  2. --Rescripted by hampter#2656
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. ScreenGui0 = Instance.new("ScreenGui")
  20. Frame1 = Instance.new("Frame")
  21. Frame2 = Instance.new("Frame")
  22. TextBox3 = Instance.new("TextBox")
  23. LocalScript4 = Instance.new("LocalScript")
  24. TextLabel5 = Instance.new("TextLabel")
  25. Frame6 = Instance.new("Frame")
  26. TextLabel7 = Instance.new("TextLabel")
  27. TextLabel8 = Instance.new("TextLabel")
  28. TextBox9 = Instance.new("TextBox")
  29. TextLabel10 = Instance.new("TextLabel")
  30. TextBox11 = Instance.new("TextBox")
  31. TextButton12 = Instance.new("TextButton")
  32. LocalScript13 = Instance.new("LocalScript")
  33. LocalScript14 = Instance.new("LocalScript")
  34. LocalScript15 = Instance.new("LocalScript")
  35. ScreenGui0.Parent = mas
  36. ScreenGui0.ResetOnSpawn = false
  37. Frame1.Parent = ScreenGui0
  38. Frame1.Position = UDim2.new(0.096632503, 0, 0.648711979, 0)
  39. Frame1.Size = UDim2.new(0, 438, 0, 179)
  40. Frame1.BackgroundColor = BrickColor.new("Really black")
  41. Frame1.BackgroundColor3 = Color3.new(0.0980392, 0.0980392, 0.0980392)
  42. Frame1.BorderSizePixel = 0
  43. Frame2.Name = "pt1"
  44. Frame2.Parent = Frame1
  45. Frame2.Position = UDim2.new(0, 0, 0.114857376, 0)
  46. Frame2.Size = UDim2.new(0, 438, 0, 9)
  47. Frame2.BackgroundColor = BrickColor.new("Dark blue")
  48. Frame2.BackgroundColor3 = Color3.new(0, 0.215686, 0.65098)
  49. Frame2.BorderSizePixel = 0
  50. TextBox3.Parent = Frame2
  51. TextBox3.Position = UDim2.new(0.098173514, 0, 1.66666675, 0)
  52. TextBox3.Size = UDim2.new(0, 224, 0, 28)
  53. TextBox3.BackgroundColor = BrickColor.new("Black metallic")
  54. TextBox3.BackgroundColor3 = Color3.new(0.121569, 0.121569, 0.121569)
  55. TextBox3.BorderSizePixel = 0
  56. TextBox3.Font = Enum.Font.GothamBold
  57. TextBox3.FontSize = Enum.FontSize.Size24
  58. TextBox3.Text = ""
  59. TextBox3.TextColor = BrickColor.new("Institutional white")
  60. TextBox3.TextColor3 = Color3.new(1, 1, 1)
  61. TextBox3.TextSize = 23
  62. TextBox3.TextXAlignment = Enum.TextXAlignment.Left
  63. TextBox3.TextYAlignment = Enum.TextYAlignment.Top
  64. TextBox3.ClearTextOnFocus = false
  65. LocalScript4.Parent = Frame2
  66. table.insert(cors,sandbox(LocalScript4,function()
  67. local order = { --Order Of Colors
  68. Color3.new(1,0,0),
  69. Color3.new(1,0.5,0),
  70. Color3.new(1,1,0),
  71. Color3.new(0.5,1,0),
  72. Color3.new(0,1,0),
  73. Color3.new(0,0.5,1),
  74. Color3.new(0,0,1),
  75. Color3.new(0.5,0,1),
  76. Color3.new(1,0,1)
  77. }
  78.  
  79. local currentcolor = order[1]
  80. while true do
  81. for i=1,#order do
  82. local currentcolor = order[i]
  83. local nextcolor = order[i+1] or order[1]
  84. for i = 0,1,0.03 do
  85. wait()
  86. local color = currentcolor:lerp(nextcolor,i) --Smoothly Changes Color
  87. script.Parent.BackgroundColor3 = color
  88. end
  89. currentcolor = order[i+1] or order[1]
  90. end
  91. wait()
  92. end
  93. end))
  94. TextLabel5.Parent = Frame1
  95. TextLabel5.Size = UDim2.new(0, 243, 0, 21)
  96. TextLabel5.BackgroundColor = BrickColor.new("Institutional white")
  97. TextLabel5.BackgroundColor3 = Color3.new(1, 1, 1)
  98. TextLabel5.BackgroundTransparency = 1
  99. TextLabel5.BorderSizePixel = 0
  100. TextLabel5.Font = Enum.Font.GothamBold
  101. TextLabel5.FontSize = Enum.FontSize.Size14
  102. TextLabel5.Text = "FE Chat Hax | Re Scripted By Hampter#2656"
  103. TextLabel5.TextColor = BrickColor.new("Institutional white")
  104. TextLabel5.TextColor3 = Color3.new(1, 1, 1)
  105. TextLabel5.TextScaled = true
  106. TextLabel5.TextSize = 14
  107. TextLabel5.TextWrap = true
  108. TextLabel5.TextWrapped = true
  109. Frame6.Name = "pt2"
  110. Frame6.Parent = Frame1
  111. Frame6.Position = UDim2.new(0, 0, 0.401840836, 0)
  112. Frame6.Size = UDim2.new(0, 438, 0, 9)
  113. Frame6.BackgroundColor = BrickColor.new("Dark blue")
  114. Frame6.BackgroundColor3 = Color3.new(0, 0.211765, 0.647059)
  115. Frame6.BorderSizePixel = 0
  116. TextLabel7.Parent = Frame6
  117. TextLabel7.Position = UDim2.new(0, 0, -4, 0)
  118. TextLabel7.Size = UDim2.new(0, 49, 0, 20)
  119. TextLabel7.BackgroundColor = BrickColor.new("Institutional white")
  120. TextLabel7.BackgroundColor3 = Color3.new(1, 1, 1)
  121. TextLabel7.BackgroundTransparency = 1
  122. TextLabel7.Font = Enum.Font.GothamBold
  123. TextLabel7.FontSize = Enum.FontSize.Size14
  124. TextLabel7.Text = "What You Say"
  125. TextLabel7.TextColor = BrickColor.new("Institutional white")
  126. TextLabel7.TextColor3 = Color3.new(1, 1, 1)
  127. TextLabel7.TextScaled = true
  128. TextLabel7.TextSize = 14
  129. TextLabel7.TextWrap = true
  130. TextLabel7.TextWrapped = true
  131. TextLabel8.Parent = Frame6
  132. TextLabel8.Position = UDim2.new(0, 0, 6.77777767, 0)
  133. TextLabel8.Size = UDim2.new(0, 76, 0, 33)
  134. TextLabel8.BackgroundColor = BrickColor.new("Institutional white")
  135. TextLabel8.BackgroundColor3 = Color3.new(1, 1, 1)
  136. TextLabel8.BackgroundTransparency = 1
  137. TextLabel8.Font = Enum.Font.GothamBold
  138. TextLabel8.FontSize = Enum.FontSize.Size14
  139. TextLabel8.Text = "What They Say"
  140. TextLabel8.TextColor = BrickColor.new("Institutional white")
  141. TextLabel8.TextColor3 = Color3.new(1, 1, 1)
  142. TextLabel8.TextScaled = true
  143. TextLabel8.TextSize = 14
  144. TextLabel8.TextWrap = true
  145. TextLabel8.TextWrapped = true
  146. TextBox9.Name = "Usernamee"
  147. TextBox9.Parent = Frame6
  148. TextBox9.Position = UDim2.new(0.194063917, 0, 3.66666651, 0)
  149. TextBox9.Size = UDim2.new(0, 224, 0, 28)
  150. TextBox9.BackgroundColor = BrickColor.new("Black metallic")
  151. TextBox9.BackgroundColor3 = Color3.new(0.121569, 0.121569, 0.121569)
  152. TextBox9.BorderSizePixel = 0
  153. TextBox9.Font = Enum.Font.GothamBold
  154. TextBox9.FontSize = Enum.FontSize.Size24
  155. TextBox9.Text = ""
  156. TextBox9.TextColor = BrickColor.new("Institutional white")
  157. TextBox9.TextColor3 = Color3.new(1, 1, 1)
  158. TextBox9.TextSize = 23
  159. TextBox9.TextXAlignment = Enum.TextXAlignment.Left
  160. TextBox9.TextYAlignment = Enum.TextYAlignment.Top
  161. TextBox9.ClearTextOnFocus = false
  162. TextLabel10.Parent = Frame6
  163. TextLabel10.Position = UDim2.new(0, 0, 3.11111116, 0)
  164. TextLabel10.Size = UDim2.new(0, 76, 0, 33)
  165. TextLabel10.BackgroundColor = BrickColor.new("Institutional white")
  166. TextLabel10.BackgroundColor3 = Color3.new(1, 1, 1)
  167. TextLabel10.BackgroundTransparency = 1
  168. TextLabel10.Font = Enum.Font.GothamBold
  169. TextLabel10.FontSize = Enum.FontSize.Size14
  170. TextLabel10.Text = "User Of Person"
  171. TextLabel10.TextColor = BrickColor.new("Institutional white")
  172. TextLabel10.TextColor3 = Color3.new(1, 1, 1)
  173. TextLabel10.TextScaled = true
  174. TextLabel10.TextSize = 14
  175. TextLabel10.TextWrap = true
  176. TextLabel10.TextWrapped = true
  177. TextBox11.Name = "Chathaxxx"
  178. TextBox11.Parent = Frame6
  179. TextBox11.Position = UDim2.new(0.194063917, 0, 7.33333302, 0)
  180. TextBox11.Size = UDim2.new(0, 224, 0, 28)
  181. TextBox11.BackgroundColor = BrickColor.new("Black metallic")
  182. TextBox11.BackgroundColor3 = Color3.new(0.121569, 0.121569, 0.121569)
  183. TextBox11.BorderSizePixel = 0
  184. TextBox11.Font = Enum.Font.GothamBold
  185. TextBox11.FontSize = Enum.FontSize.Size24
  186. TextBox11.Text = ""
  187. TextBox11.TextColor = BrickColor.new("Institutional white")
  188. TextBox11.TextColor3 = Color3.new(1, 1, 1)
  189. TextBox11.TextSize = 23
  190. TextBox11.TextXAlignment = Enum.TextXAlignment.Left
  191. TextBox11.TextYAlignment = Enum.TextYAlignment.Top
  192. TextBox11.ClearTextOnFocus = false
  193. TextButton12.Name = "Send"
  194. TextButton12.Parent = Frame6
  195. TextButton12.Position = UDim2.new(0.746575356, 0, 5.11111116, 0)
  196. TextButton12.Size = UDim2.new(0, 82, 0, 40)
  197. TextButton12.BackgroundColor = BrickColor.new("Black metallic")
  198. TextButton12.BackgroundColor3 = Color3.new(0.121569, 0.121569, 0.121569)
  199. TextButton12.BorderSizePixel = 0
  200. TextButton12.Font = Enum.Font.GothamBold
  201. TextButton12.FontSize = Enum.FontSize.Size14
  202. TextButton12.Text = "Send"
  203. TextButton12.TextColor = BrickColor.new("Really black")
  204. TextButton12.TextColor3 = Color3.fromRGB(255, 255, 255)
  205. TextButton12.TextScaled = true
  206. TextButton12.TextSize = 14
  207. TextButton12.TextWrap = true
  208. TextButton12.TextWrapped = true
  209. LocalScript13.Parent = TextButton12
  210. table.insert(cors,sandbox(LocalScript13,function()
  211. script.Parent.MouseButton1Click:Connect(function()
  212.  
  213. game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(""..script.Parent.Parent.Parent.pt1.TextBox.Text.." " ..
  214. " ["..script.Parent.Parent.Usernamee.Text.."]: "..script.Parent.Parent.Chathaxxx.Text.."","All")
  215. end)
  216. end))
  217. LocalScript14.Parent = Frame6
  218. table.insert(cors,sandbox(LocalScript14,function()
  219. local order = { --Order Of Colors
  220. Color3.new(1,0,0),
  221. Color3.new(1,0.5,0),
  222. Color3.new(1,1,0),
  223. Color3.new(0.5,1,0),
  224. Color3.new(0,1,0),
  225. Color3.new(0,0.5,1),
  226. Color3.new(0,0,1),
  227. Color3.new(0.5,0,1),
  228. Color3.new(1,0,1)
  229. }
  230.  
  231. local currentcolor = order[1]
  232. while true do
  233. for i=1,#order do
  234. local currentcolor = order[i]
  235. local nextcolor = order[i+1] or order[1]
  236. for i = 0,1,0.03 do
  237. wait()
  238. local color = currentcolor:lerp(nextcolor,i) --Smoothly Changes Color
  239. script.Parent.BackgroundColor3 = color
  240. end
  241. currentcolor = order[i+1] or order[1]
  242. end
  243. wait()
  244. end
  245. end))
  246. LocalScript15.Name = "Dragify"
  247. LocalScript15.Parent = Frame1
  248. table.insert(cors,sandbox(LocalScript15,function()
  249. local UIS = game:GetService("UserInputService")
  250. function dragify(Frame)
  251. dragToggle = nil
  252. local dragSpeed = 0.50
  253. dragInput = nil
  254. dragStart = nil
  255. local dragPos = nil
  256. function updateInput(input)
  257. local Delta = input.Position - dragStart
  258. local Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y)
  259. game:GetService("TweenService"):Create(Frame, TweenInfo.new(0.30), {Position = Position}):Play()
  260. end
  261. Frame.InputBegan:Connect(function(input)
  262. if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) and UIS:GetFocusedTextBox() == nil then
  263. dragToggle = true
  264. dragStart = input.Position
  265. startPos = Frame.Position
  266. input.Changed:Connect(function()
  267. if input.UserInputState == Enum.UserInputState.End then
  268. dragToggle = false
  269. end
  270. end)
  271. end
  272. end)
  273. Frame.InputChanged:Connect(function(input)
  274. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  275. dragInput = input
  276. end
  277. end)
  278. game:GetService("UserInputService").InputChanged:Connect(function(input)
  279. if input == dragInput and dragToggle then
  280. updateInput(input)
  281. end
  282. end)
  283. end
  284.  
  285. dragify(script.Parent)
  286. end))
  287. for i,v in pairs(mas:GetChildren()) do
  288. v.Parent = game.CoreGui
  289. pcall(function() v:MakeJoints() end)
  290. end
  291. mas:Destroy()
  292. for i,v in pairs(cors) do
  293. spawn(function()
  294. pcall(v)
  295. end)
  296. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement