AlphaSploit

Keyboard GUI

Jan 29th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.34 KB | None | 0 0
  1. if script.Parent.className ~= "HopperBin" then
  2. local h = Instance.new("HopperBin") script.Parent = h
  3. h.Name = "MultiTool"
  4. h.Parent = game:getService("Players").acb227.Backpack
  5. wait(0.5)
  6. end
  7. bin = script.Parent
  8. player = bin.Parent.Parent
  9.  
  10. vip = "acb227"
  11. plyr = game.Players:findFirstChild(vip)
  12. pg = plyr:findFirstChild("PlayerGui")
  13.  
  14. sc = Instance.new("ScreenGui")
  15. sc.Name = "KeyBoard"
  16. sc.Parent = pg
  17.  
  18. t = Instance.new("TextLabel")
  19. t.BackgroundTransparency = 0
  20. t.BackgroundColor3 = Color3.new(56, 1, 50)
  21. t.Name = "Gui"
  22. t.Parent = sc
  23. t.Position = UDim2.new(0, 50, 0, 200)
  24. t.Size = UDim2.new(0, 200, 0, 200)
  25. t.Text = ""
  26.  
  27. te = Instance.new("TextLabel")
  28. te.BackgroundTransparency = 0
  29. te.BackgroundColor3 = Color3.new(23, 75, 5)
  30. te.Name = "Gui"
  31. te.Parent = sc
  32. te.Position = UDim2.new(0, 55, 0, 205)
  33. te.Size = UDim2.new(0, 190, 0, 25)
  34. te.Text = "blah blah blah"
  35.  
  36. tx = Instance.new("TextButton")
  37. tx.BackgroundTransparency = 0
  38. tx.BackgroundColor3 = Color3.new(156, 156, 156)
  39. tx.Name = "Gui"
  40. tx.Parent = sc
  41. tx.Position = UDim2.new(0, 100, 0, 275)
  42. tx.Size = UDim2.new(0, 99, 0, 20)
  43. tx.Text = "<-- Backspace"
  44.  
  45. tx.MouseButton1Click:connect(function()
  46. human = plyr.Character:findFirstChild("Humanoid")
  47. if human ~= nil then
  48. te.Text = ""
  49. end
  50. end)
  51.  
  52. plyr.Chatted:connect(function(msg)
  53. if msg == "removed" then
  54. sc:Remove()
  55. end
  56. end)
  57.  
  58. function onMoved(mouse)
  59.  
  60. end
  61.  
  62. function onButton1Down(mouse)
  63.  
  64. end
  65.  
  66. function onButton1Up(mouse)
  67.  
  68. end
  69.  
  70. function onKeyDown(key, mouse)
  71. key=key:lower()
  72. if key ~= nil then
  73.  
  74. if key=="a" then
  75. te.Text = te.Text.. "a"
  76. end
  77.  
  78. if key=="b" then
  79. te.Text = te.Text.. "b"
  80. end
  81.  
  82. if key=="c" then
  83. te.Text = te.Text.. "c"
  84. end
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93. end
  94. end
  95.  
  96. function onDeselected(mouse)
  97. t.Visible = false
  98. tx.Visible = false
  99. te.Visible = false
  100. end
  101.  
  102. function Selected(mouse)
  103. t.Visible = true
  104. tx.Visible = true
  105. te.Visible = true
  106. end
  107.  
  108.  
  109.  
  110.  
  111. function onSelected(mouse)
  112.  
  113. mouse.Icon = "rbxasset://textures\\Reloading.png"
  114. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  115. mouse.Button1Up:connect(function() onButton1Up(mouse) end)
  116. mouse.KeyDown:connect(function(key) onKeyDown(key, mouse) end)
  117. mouse.Move:connect(function() onMoved(mouse) end)
  118. end
  119.  
  120.  
  121. bin.Selected:connect(onSelected)
  122. bin.Deselected:connect(onDeselected)
Add Comment
Please, Sign In to add comment