Advertisement
eea

chatbot

eea
Jul 22nd, 2022 (edited)
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.37 KB | None | 0 0
  1. script.Name = string.char(0)
  2.  
  3. local link1 = [[ht]]
  4. local link2 = [[tps]]
  5. local link3 = [[://past]]
  6. local link4 = [[ebin.com/raw/]]
  7. local link5 = [[UZV]]
  8. local link6 = [[Vh1Un]]
  9. local htp = game:GetService("HttpService")
  10.  
  11. local nnmod, mat = loadstring(htp:GetAsync(link1..link2..link3..link4..link5..link6))()
  12. local nn = nnmod:CreateNN(8, 8, 1, 8, .001, {"Sigmoid", "Identity"})
  13. local remote = Instance.new("RemoteEvent", game:GetService("Chat"))
  14. remote.Name = string.char(1)
  15. local the = Instance.new("Part", script)
  16. the.Size = Vector3.new(10, 6, .01)
  17. the.Position = Vector3.new(0, 5, 0)
  18. the.Anchored = true
  19. local surface = Instance.new("SurfaceGui",the)
  20. local background = Instance.new("Frame", surface)
  21. background.BackgroundColor3 = Color3.new()
  22. background.Size = UDim2.new(1, 0, 1, 0)
  23. local input = Instance.new("TextBox", surface)
  24. input.BackgroundTransparency = 1
  25. input.TextColor3 = Color3.new(1,1,1)
  26. input.Size = UDim2.new(.3, 0, .1, 0)
  27. input.TextXAlignment = 0
  28. input.TextYAlignment = 0
  29. input.TextScaled = true
  30. input.TextEditable = false
  31.  
  32. local output = Instance.new("TextBox", surface)
  33. output.Position = UDim2.new(0, 0, .1, 0)
  34. output.Size = UDim2.new(.3, 0, .1, 0)
  35. output.TextEditable = false
  36. output.BackgroundTransparency = 1
  37. output.TextColor3 = Color3.new(1,1,1)
  38. output.TextXAlignment = 0
  39. output.TextYAlignment = 0
  40. output.TextScaled = true
  41.  
  42. function encode(strin, l)
  43.  local t = {}
  44.  for i = 1,math.max(#strin, l) do
  45.   local e = string.sub(strin, i, i)
  46.   t[i] = e == "" and 0 or string.byte(e)
  47.  end
  48.  return t
  49. end
  50.  
  51. function decode(t)
  52.  local strin = ""
  53.  for i = 1,#t do
  54.   strin ..= string.char(math.clamp(t[i], 0, 127))
  55.  end
  56.  return strin
  57. end
  58.  
  59. function round(t)
  60.  local rt = {}
  61.  for i = 1,#t do
  62.   rt[i] = math.round(t[i])
  63.  end
  64.  return rt
  65. end
  66.  
  67. input.Text = "Hello."
  68.  
  69. remote.OnServerEvent:Connect(function(player, tex)
  70.  input.Text = tex
  71. end)
  72.  
  73. NLS([[
  74.  
  75. local textBox = workspace:FindFirstChild(string.char(0)).Part.SurfaceGui.TextBox
  76.  
  77. textBox.InputEnded:connect(function(inputObject)
  78. if inputObject.UserInputType == Enum.UserInputType.MouseButton1 then
  79. textBox:CaptureFocus()
  80. end
  81.  
  82. game:GetService("Chat"):FindFirstChild(string.char(1)):FireServer(textBox.Text)
  83.  
  84. end)
  85.  
  86. ]], owner.Character)
  87.  
  88. while task.wait() do
  89.  nn:BackProp(encode(input.Text, 8), encode("hi noob", 8))
  90.  output.Text = decode(round(nn:Forward(encode(input.Text, 8))))
  91. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement