Advertisement
XrAaz

TriggerbotUI

Oct 7th, 2020 (edited)
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.71 KB | None | 0 0
  1. local screengui = Instance.new("ScreenGui")
  2. local frame = Instance.new("Frame")
  3. local tbkTbutton = Instance.new("TextBox")
  4. local title = Instance.new("TextLabel")
  5. local tcButton = Instance.new("TextButton")
  6. local auButton = Instance.new("TextButton")
  7. local keybindTEXT = Instance.new("TextLabel")
  8. local enButton = Instance.new("TextButton")
  9.  
  10. screengui.Name = "screengui"
  11. screengui.Parent = game.CoreGui
  12. screengui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  13.  
  14. frame.Name = "frame"
  15. frame.Parent = screengui
  16. frame.BackgroundColor3 = Color3.fromRGB(48, 48, 48)
  17. frame.BorderSizePixel = 0
  18. frame.Position = UDim2.new(0.33564356, 0, 0.376146823, 0)
  19. frame.Size = UDim2.new(0, 200, 0, 100)
  20. frame.Active = true
  21. frame.Draggable = true
  22.  
  23. tbkTbutton.Name = "tbkTbutton"
  24. tbkTbutton.Parent = frame
  25. tbkTbutton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  26. tbkTbutton.BackgroundTransparency = 1.000
  27. tbkTbutton.BorderSizePixel = 0
  28. tbkTbutton.Position = UDim2.new(0.86500001, 0, 0, 0)
  29. tbkTbutton.Size = UDim2.new(0, 27, 0, 28)
  30. tbkTbutton.Font = Enum.Font.Code
  31. tbkTbutton.Text = "m1"
  32. tbkTbutton.TextColor3 = Color3.fromRGB(255, 255, 255)
  33. tbkTbutton.TextScaled = true
  34. tbkTbutton.TextSize = 30.000
  35. tbkTbutton.TextStrokeTransparency = 0.000
  36. tbkTbutton.TextWrapped = true
  37.  
  38. title.Name = "title"
  39. title.Parent = frame
  40. title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  41. title.BackgroundTransparency = 1.000
  42. title.Position = UDim2.new(0.00499999989, 0, 0, 0)
  43. title.Size = UDim2.new(0, 68, 0, 12)
  44. title.Font = Enum.Font.SourceSans
  45. title.Text = "Feens#7908"
  46. title.TextColor3 = Color3.fromRGB(255, 255, 255)
  47. title.TextSize = 14.000
  48.  
  49. tcButton.Name = "tcButton"
  50. tcButton.Parent = frame
  51. tcButton.BackgroundColor3 = Color3.fromRGB(48, 48, 48)
  52. tcButton.BorderSizePixel = 0
  53. tcButton.Position = UDim2.new(0.00499999989, 0, 0.829999983, 0)
  54. tcButton.Size = UDim2.new(0, 199, 0, 17)
  55. tcButton.Font = Enum.Font.SourceSans
  56. tcButton.Text = "Team Check OFF"
  57. tcButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  58. tcButton.TextScaled = true
  59. tcButton.TextSize = 14.000
  60. tcButton.TextWrapped = true
  61.  
  62. auButton.Name = "auButton"
  63. auButton.Parent = frame
  64. auButton.BackgroundColor3 = Color3.fromRGB(48, 48, 48)
  65. auButton.BorderSizePixel = 0
  66. auButton.Position = UDim2.new(0.00499999989, 0, 0.579999983, 0)
  67. auButton.Size = UDim2.new(0, 199, 0, 17)
  68. auButton.Font = Enum.Font.SourceSans
  69. auButton.Text = "Auto Shoot OFF"
  70. auButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  71. auButton.TextScaled = true
  72. auButton.TextSize = 14.000
  73. auButton.TextWrapped = true
  74.  
  75. keybindTEXT.Name = "keybindTEXT"
  76. keybindTEXT.Parent = frame
  77. keybindTEXT.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  78. keybindTEXT.BackgroundTransparency = 1.000
  79. keybindTEXT.BorderSizePixel = 0
  80. keybindTEXT.Position = UDim2.new(99999, 0, 99999, 0)
  81. keybindTEXT.Size = UDim2.new(0, 184, 0, 33)
  82. keybindTEXT.Font = Enum.Font.SourceSans
  83. keybindTEXT.Text = "m1 = Mouse 1, m2 = Mouse 2  KeyBind"
  84. keybindTEXT.TextColor3 = Color3.fromRGB(255, 255, 255)
  85. keybindTEXT.TextSize = 14.000
  86. keybindTEXT.TextWrapped = true
  87.  
  88. enButton.Name = "enButton"
  89. enButton.Parent = frame
  90. enButton.BackgroundColor3 = Color3.fromRGB(48, 48, 48)
  91. enButton.BorderSizePixel = 0
  92. enButton.Position = UDim2.new(0.00499999989, 0, 0.349999964, 0)
  93. enButton.Size = UDim2.new(0, 199, 0, 17)
  94. enButton.Font = Enum.Font.SourceSans
  95. enButton.Text = "Disabled"
  96. enButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  97. enButton.TextScaled = true
  98. enButton.TextSize = 14.000
  99. enButton.TextWrapped = true
  100.  
  101. local Players = game:GetService("Players")
  102. local lp = Players.LocalPlayer
  103. local mouse = lp:GetMouse()
  104. local rservice = game:GetService("RunService")
  105. local enabled = false
  106. local teamcheck = false
  107. local autos = false
  108. local tf = false
  109.  
  110. mouse.Button1Down:Connect(function()
  111.     if tbkTbutton.Text == "m1" then
  112.         tf = true
  113.     end
  114. end)
  115. mouse.Button1Up:Connect(function()
  116.     if tbkTbutton.Text == "m1" then
  117.         tf = false
  118.     end
  119. end)
  120.  
  121. mouse.Button2Down:Connect(function()
  122.     if tbkTbutton.Text == "m2" then
  123.         tf = true
  124.     end
  125. end)
  126. mouse.Button2Up:Connect(function()
  127.     if tbkTbutton.Text == "m2" then
  128.         tf = false
  129.     end
  130. end)
  131.  
  132. mouse.KeyDown:Connect(function(key)
  133.     if tbkTbutton.Text ~= "m1" and "m2" then
  134.         if key == tbkTbutton.Text then
  135.             tf = true
  136.         end
  137.     end
  138. end)
  139. mouse.KeyUp:Connect(function(key)
  140.     if tbkTbutton.Text ~= "m1" and "m2" then
  141.         if key == tbkTbutton.Text then
  142.             tf = false
  143.         end
  144.     end
  145. end)
  146.  
  147. tbkTbutton.MouseEnter:Connect(function()
  148.     keybindTEXT.Position = tbkTbutton.Position + UDim2.new(0, 10, 0, 30)
  149. end)
  150. tbkTbutton.MouseLeave:Connect(function()
  151.     keybindTEXT.Position = UDim2.new(9999,9999,9999,9999)
  152. end)
  153.  
  154. enButton.MouseButton1Click:Connect(function()
  155.     if enButton.Text == "Disabled" then
  156.         enButton.Text = "Enabled"
  157.         enabled = true
  158.     else
  159.         enButton.Text = "Disabled"
  160.         enabled = false
  161.     end
  162. end)
  163.  
  164. tcButton.MouseButton1Click:Connect(function()
  165.     if tcButton.Text == "Team Check OFF" then
  166.         tcButton.Text = "Team Check ON"
  167.         teamcheck = true
  168.     else
  169.         tcButton.Text = "Team Check OFF"
  170.         teamcheck = false
  171.     end
  172. end)
  173.  
  174. auButton.MouseButton1Click:Connect(function()
  175.     if auButton.Text == "Auto Shoot OFF" then
  176.         auButton.Text = "Auto Shoot ON"
  177.         autos = true
  178.     else
  179.         auButton.Text = "Auto Shoot OFF"
  180.         autos = false
  181.     end
  182. end)
  183.  
  184. rservice.Stepped:Connect(function()
  185.     pcall(function()
  186.         if enButton.Text == "Enabled" then
  187.             if mouse.Target and Players:FindFirstChild(mouse.Target.Parent.Name) then
  188.                 local HitPlayer = Players:FindFirstChild(mouse.Target.Parent.Name)
  189.                 if HitPlayer.Team ~= lp.Team or not teamcheck then
  190.                     if autos == false and tf == true then
  191.                         mouse1press(); wait(); mouse1release()
  192.                     elseif autos == true then
  193.                         mouse1press(); wait(); mouse1release()
  194.                     end
  195.                 end
  196.             end
  197.         end
  198.     end)
  199. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement