Advertisement
mr2meows

afk anti-kick gui

Jun 25th, 2019
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.85 KB | None | 0 0
  1. -- Objects
  2.  
  3. local AFKbotgui = Instance.new("ScreenGui")
  4. local OpenButton1 = Instance.new("TextButton")
  5. local MainFrame1 = Instance.new("Frame")
  6. local NameOfGUILabel1 = Instance.new("TextLabel")
  7. local CreditsLabel1 = Instance.new("TextLabel")
  8. local AFKBot1Button = Instance.new("TextButton")
  9. local AFKBot2Button = Instance.new("TextButton")
  10. local InfoLabel1 = Instance.new("TextLabel")
  11. local InfoLabel2 = Instance.new("TextLabel")
  12. local MainFrame2 = Instance.new("Frame")
  13. local NameOfGUILabel2 = Instance.new("TextLabel")
  14. local LaunchButton1 = Instance.new("TextButton")
  15. local LaunchButton2 = Instance.new("TextButton")
  16. local ExitButton1 = Instance.new("TextButton")
  17. local MainFrame3 = Instance.new("Frame")
  18. local NameOfGUILabel3 = Instance.new("TextLabel")
  19. local LaunchButton3 = Instance.new("TextButton")
  20. local LaunchButton4 = Instance.new("TextButton")
  21. local ExitButton2 = Instance.new("TextButton")
  22.  
  23. -- Properties
  24.  
  25. local activated2 = true
  26. local activated = true
  27. AFKbotgui.Name = "AFK bot gui"
  28. AFKbotgui.Parent = game.CoreGui
  29.  
  30. OpenButton1.Name = "OpenButton1"
  31. OpenButton1.Parent = AFKbotgui
  32. OpenButton1.BackgroundColor3 = Color3.new(0.678431, 0.156863, 0.184314)
  33. OpenButton1.BorderColor3 = Color3.new(0.054902, 0, 0.470588)
  34. OpenButton1.Position = UDim2.new(0, 0, 0.452830195, 0)
  35. OpenButton1.Size = UDim2.new(0, 200, 0, 50)
  36. OpenButton1.Font = Enum.Font.SourceSans
  37. OpenButton1.Text = "Click to open!"
  38. OpenButton1.TextColor3 = Color3.new(0.219608, 0.0588235, 0.631373)
  39. OpenButton1.TextScaled = true
  40. OpenButton1.TextSize = 14
  41. OpenButton1.TextWrapped = true
  42. OpenButton1.MouseButton1Down:connect(function()
  43. if MainFrame1.Visible == false then
  44. MainFrame1.Visible = true
  45. OpenButton1.Text = "Click to close!"
  46. else
  47. MainFrame1.Visible = false
  48. OpenButton1.Text = "Click to open!"
  49. end
  50. end)
  51.  
  52. MainFrame1.Name = "MainFrame1"
  53. MainFrame1.Parent = AFKbotgui
  54. MainFrame1.BackgroundColor3 = Color3.new(0.678431, 0.156863, 0.184314)
  55. MainFrame1.BorderColor3 = Color3.new(0.054902, 0, 0.470588)
  56. MainFrame1.Position = UDim2.new(0.160150379, 0, 0.332075477, 0)
  57. MainFrame1.Size = UDim2.new(0, 531, 0, 328)
  58. MainFrame1.Visible = false
  59. MainFrame1.Active = true
  60. MainFrame1.Draggable = true
  61.  
  62. NameOfGUILabel1.Name = "NameOfGUILabel1"
  63. NameOfGUILabel1.Parent = MainFrame1
  64. NameOfGUILabel1.BackgroundColor3 = Color3.new(0.541176, 0.12549, 0.152941)
  65. NameOfGUILabel1.Size = UDim2.new(0, 531, 0, 63)
  66. NameOfGUILabel1.Font = Enum.Font.SourceSans
  67. NameOfGUILabel1.Text = "AFK bot GUI"
  68. NameOfGUILabel1.TextColor3 = Color3.new(0.219608, 0.0588235, 0.631373)
  69. NameOfGUILabel1.TextScaled = true
  70. NameOfGUILabel1.TextSize = 14
  71. NameOfGUILabel1.TextWrapped = true
  72.  
  73. CreditsLabel1.Name = "CreditsLabel1"
  74. CreditsLabel1.Parent = MainFrame1
  75. CreditsLabel1.BackgroundColor3 = Color3.new(0.541176, 0.12549, 0.152941)
  76. CreditsLabel1.BorderColor3 = Color3.new(0.541176, 0.12549, 0.152941)
  77. CreditsLabel1.Position = UDim2.new(0.011299436, 0, 0.0198170729, 0)
  78. CreditsLabel1.Size = UDim2.new(0, 115, 0, 50)
  79. CreditsLabel1.Font = Enum.Font.SourceSans
  80. CreditsLabel1.Text = "made by superpugbot/testingrobux33/Guest_4406"
  81. CreditsLabel1.TextColor3 = Color3.new(0.219608, 0.0588235, 0.631373)
  82. CreditsLabel1.TextScaled = true
  83. CreditsLabel1.TextSize = 14
  84. CreditsLabel1.TextWrapped = true
  85.  
  86. AFKBot1Button.Name = "AFKBot1Button"
  87. AFKBot1Button.Parent = MainFrame1
  88. AFKBot1Button.BackgroundColor3 = Color3.new(0.678431, 0.156863, 0.184314)
  89. AFKBot1Button.BorderColor3 = Color3.new(0.054902, 0, 0.470588)
  90. AFKBot1Button.Position = UDim2.new(0.627118647, 0, 0.268292665, 0)
  91. AFKBot1Button.Size = UDim2.new(0, 198, 0, 50)
  92. AFKBot1Button.Font = Enum.Font.SourceSans
  93. AFKBot1Button.Text = "AFK bot 1"
  94. AFKBot1Button.TextColor3 = Color3.new(0, 0, 0)
  95. AFKBot1Button.TextScaled = true
  96. AFKBot1Button.TextSize = 14
  97. AFKBot1Button.TextWrapped = true
  98. AFKBot1Button.MouseButton1Down:connect(function()
  99. MainFrame1.Visible = false
  100. MainFrame2.Visible = true
  101. end)
  102.  
  103. AFKBot2Button.Name = "AFKBot2Button"
  104. AFKBot2Button.Parent = MainFrame1
  105. AFKBot2Button.BackgroundColor3 = Color3.new(0.678431, 0.156863, 0.184314)
  106. AFKBot2Button.BorderColor3 = Color3.new(0.054902, 0, 0.470588)
  107. AFKBot2Button.Position = UDim2.new(0.626177073, 0, 0.704268277, 0)
  108. AFKBot2Button.Size = UDim2.new(0, 198, 0, 50)
  109. AFKBot2Button.Font = Enum.Font.SourceSans
  110. AFKBot2Button.Text = "AFK bot 2"
  111. AFKBot2Button.TextColor3 = Color3.new(0, 0, 0)
  112. AFKBot2Button.TextScaled = true
  113. AFKBot2Button.TextSize = 14
  114. AFKBot2Button.TextWrapped = true
  115. AFKBot2Button.MouseButton1Down:connect(function()
  116. MainFrame1.Visible = false
  117. MainFrame3.Visible = true
  118. end)
  119.  
  120. InfoLabel1.Name = "InfoLabel1"
  121. InfoLabel1.Parent = MainFrame1
  122. InfoLabel1.BackgroundColor3 = Color3.new(0.678431, 0.156863, 0.184314)
  123. InfoLabel1.BorderColor3 = Color3.new(0.678431, 0.156863, 0.184314)
  124. InfoLabel1.Position = UDim2.new(0.0263653491, 0, 0.268292695, 0)
  125. InfoLabel1.Size = UDim2.new(0, 287, 0, 50)
  126. InfoLabel1.Font = Enum.Font.SourceSans
  127. InfoLabel1.Text = "This option here will make your character walk around like a normal person in random directions."
  128. InfoLabel1.TextColor3 = Color3.new(0.219608, 0.0588235, 0.631373)
  129. InfoLabel1.TextScaled = true
  130. InfoLabel1.TextSize = 14
  131. InfoLabel1.TextWrapped = true
  132.  
  133. InfoLabel2.Name = "InfoLabel2"
  134. InfoLabel2.Parent = MainFrame1
  135. InfoLabel2.BackgroundColor3 = Color3.new(0.678431, 0.156863, 0.184314)
  136. InfoLabel2.BorderColor3 = Color3.new(0.678431, 0.156863, 0.184314)
  137. InfoLabel2.Position = UDim2.new(0.0263653491, 0, 0.704268336, 0)
  138. InfoLabel2.Size = UDim2.new(0, 287, 0, 50)
  139. InfoLabel2.Font = Enum.Font.SourceSans
  140. InfoLabel2.Text = "This option here will make your character walk forwards then backwards over again."
  141. InfoLabel2.TextColor3 = Color3.new(0.219608, 0.0588235, 0.631373)
  142. InfoLabel2.TextScaled = true
  143. InfoLabel2.TextSize = 14
  144. InfoLabel2.TextWrapped = true
  145.  
  146. MainFrame2.Name = "MainFrame2"
  147. MainFrame2.Parent = AFKbotgui
  148. MainFrame2.BackgroundColor3 = Color3.new(0.678431, 0.156863, 0.184314)
  149. MainFrame2.BorderColor3 = Color3.new(0.054902, 0, 0.470588)
  150. MainFrame2.Position = UDim2.new(0.162406012, 0, 0.452830195, 0)
  151. MainFrame2.Size = UDim2.new(0, 531, 0, 198)
  152. MainFrame2.Visible = false
  153. MainFrame2.Active = true
  154. MainFrame2.Draggable = true
  155.  
  156. NameOfGUILabel2.Name = "NameOfGUILabel2"
  157. NameOfGUILabel2.Parent = MainFrame2
  158. NameOfGUILabel2.BackgroundColor3 = Color3.new(0.541176, 0.12549, 0.152941)
  159. NameOfGUILabel2.Position = UDim2.new(0, 0, 0.00304878037, 0)
  160. NameOfGUILabel2.Size = UDim2.new(0, 531, 0, 63)
  161. NameOfGUILabel2.Font = Enum.Font.SourceSans
  162. NameOfGUILabel2.Text = "AFK bot 1"
  163. NameOfGUILabel2.TextColor3 = Color3.new(0.219608, 0.0588235, 0.631373)
  164. NameOfGUILabel2.TextScaled = true
  165. NameOfGUILabel2.TextSize = 14
  166. NameOfGUILabel2.TextWrapped = true
  167.  
  168. LaunchButton1.Name = "LaunchButton1"
  169. LaunchButton1.Parent = MainFrame2
  170. LaunchButton1.BackgroundColor3 = Color3.new(0.678431, 0.156863, 0.184314)
  171. LaunchButton1.Position = UDim2.new(0, 0, 0.439393908, 0)
  172. LaunchButton1.Size = UDim2.new(0, 200, 0, 50)
  173. LaunchButton1.Font = Enum.Font.SourceSans
  174. LaunchButton1.Text = "Launch bot"
  175. LaunchButton1.TextColor3 = Color3.new(0.219608, 0.0588235, 0.631373)
  176. LaunchButton1.TextScaled = true
  177. LaunchButton1.TextSize = 14
  178. LaunchButton1.TextWrapped = true
  179. LaunchButton1.MouseButton1Down:connect(function()
  180. activated = true
  181. while activated == true do
  182. wait(0.5)
  183. game.Players.LocalPlayer.Character.Humanoid:MoveTo(game.Players.LocalPlayer.Character.Torso.CFrame * Vector3.new(math.random(-10,10),0,math.random(-10,10)))
  184. end
  185. end)
  186.  
  187. LaunchButton2.Name = "LaunchButton2"
  188. LaunchButton2.Parent = MainFrame2
  189. LaunchButton2.BackgroundColor3 = Color3.new(0.678431, 0.156863, 0.184314)
  190. LaunchButton2.Position = UDim2.new(0.62335217, 0, 0.439393878, 0)
  191. LaunchButton2.Size = UDim2.new(0, 200, 0, 50)
  192. LaunchButton2.Font = Enum.Font.SourceSans
  193. LaunchButton2.Text = "Stop bot"
  194. LaunchButton2.TextColor3 = Color3.new(0.219608, 0.0588235, 0.631373)
  195. LaunchButton2.TextScaled = true
  196. LaunchButton2.TextSize = 14
  197. LaunchButton2.TextWrapped = true
  198. LaunchButton2.MouseButton1Down:connect(function()
  199. activated = false
  200. end)
  201.  
  202. ExitButton1.Name = "ExitButton1"
  203. ExitButton1.Parent = MainFrame2
  204. ExitButton1.BackgroundColor3 = Color3.new(1, 0, 0.0156863)
  205. ExitButton1.Position = UDim2.new(0.888888896, 0, 0.075757578, 0)
  206. ExitButton1.Size = UDim2.new(0, 51, 0, 35)
  207. ExitButton1.Font = Enum.Font.SourceSans
  208. ExitButton1.Text = "Exit"
  209. ExitButton1.TextColor3 = Color3.new(0, 0, 0)
  210. ExitButton1.TextScaled = true
  211. ExitButton1.TextSize = 14
  212. ExitButton1.TextWrapped = true
  213. ExitButton1.MouseButton1Down:connect(function()
  214. MainFrame2.Visible = false
  215. MainFrame1.Visible = true
  216. activated = false
  217. end)
  218.  
  219. MainFrame3.Name = "MainFrame3"
  220. MainFrame3.Parent = AFKbotgui
  221. MainFrame3.BackgroundColor3 = Color3.new(0.678431, 0.156863, 0.184314)
  222. MainFrame3.BorderColor3 = Color3.new(0.054902, 0, 0.470588)
  223. MainFrame3.Position = UDim2.new(0.162406027, 0, 0.45471698, 0)
  224. MainFrame3.Size = UDim2.new(0, 531, 0, 198)
  225. MainFrame3.Visible = false
  226. MainFrame3.Active = true
  227. MainFrame3.Draggable = true
  228.  
  229. NameOfGUILabel3.Name = "NameOfGUILabel3"
  230. NameOfGUILabel3.Parent = MainFrame3
  231. NameOfGUILabel3.BackgroundColor3 = Color3.new(0.541176, 0.12549, 0.152941)
  232. NameOfGUILabel3.Position = UDim2.new(0, 0, 0.00304878037, 0)
  233. NameOfGUILabel3.Size = UDim2.new(0, 531, 0, 63)
  234. NameOfGUILabel3.Font = Enum.Font.SourceSans
  235. NameOfGUILabel3.Text = "AFK bot 2"
  236. NameOfGUILabel3.TextColor3 = Color3.new(0.219608, 0.0588235, 0.631373)
  237. NameOfGUILabel3.TextScaled = true
  238. NameOfGUILabel3.TextSize = 14
  239. NameOfGUILabel3.TextWrapped = true
  240.  
  241. LaunchButton3.Name = "LaunchButton3"
  242. LaunchButton3.Parent = MainFrame3
  243. LaunchButton3.BackgroundColor3 = Color3.new(0.678431, 0.156863, 0.184314)
  244. LaunchButton3.Position = UDim2.new(0, 0, 0.439393908, 0)
  245. LaunchButton3.Size = UDim2.new(0, 200, 0, 50)
  246. LaunchButton3.Font = Enum.Font.SourceSans
  247. LaunchButton3.Text = "Launch bot"
  248. LaunchButton3.TextColor3 = Color3.new(0.219608, 0.0588235, 0.631373)
  249. LaunchButton3.TextScaled = true
  250. LaunchButton3.TextSize = 14
  251. LaunchButton3.TextWrapped = true
  252. LaunchButton3.MouseButton1Down:connect(function()
  253. activated2 = true
  254. while activated2 == true do
  255. wait()
  256. local p = game.Players.LocalPlayer.Character.HumanoidRootPart
  257. local part1 = Instance.new("Part",game.Workspace)
  258. part1.Name = "Part1"
  259. part1.CFrame = CFrame.new(p.CFrame * Vector3.new(0,0,-10))
  260. part1.Transparency = 1
  261. part1.CanCollide = false
  262. wait()
  263. game.Players.LocalPlayer.Character.Humanoid:MoveTo(part1.Position)
  264. wait(1)
  265. part1:Destroy()
  266. wait()
  267. local p1 = game.Players.LocalPlayer.Character.HumanoidRootPart
  268. local part2 = Instance.new("Part",game.Workspace)
  269. part2.Name = "Part1"
  270. part2.CFrame = CFrame.new(p1.CFrame * Vector3.new(0,0,10))
  271. part2.Transparency = 1
  272. part2.CanCollide = false
  273. wait()
  274. game.Players.LocalPlayer.Character.Humanoid:MoveTo(part2.Position)
  275. wait(1)
  276. part2:Destroy()
  277. end
  278. end)
  279.  
  280. LaunchButton4.Name = "LaunchButton4"
  281. LaunchButton4.Parent = MainFrame3
  282. LaunchButton4.BackgroundColor3 = Color3.new(0.678431, 0.156863, 0.184314)
  283. LaunchButton4.Position = UDim2.new(0.62335217, 0, 0.439393878, 0)
  284. LaunchButton4.Size = UDim2.new(0, 200, 0, 50)
  285. LaunchButton4.Font = Enum.Font.SourceSans
  286. LaunchButton4.Text = "Stop bot"
  287. LaunchButton4.TextColor3 = Color3.new(0.219608, 0.0588235, 0.631373)
  288. LaunchButton4.TextScaled = true
  289. LaunchButton4.TextSize = 14
  290. LaunchButton4.TextWrapped = true
  291. LaunchButton4.MouseButton1Down:connect(function()
  292. activated2 = false
  293. end)
  294.  
  295. ExitButton2.Name = "ExitButton2"
  296. ExitButton2.Parent = MainFrame3
  297. ExitButton2.BackgroundColor3 = Color3.new(1, 0, 0.0156863)
  298. ExitButton2.Position = UDim2.new(0.888888896, 0, 0.075757578, 0)
  299. ExitButton2.Size = UDim2.new(0, 51, 0, 35)
  300. ExitButton2.Font = Enum.Font.SourceSans
  301. ExitButton2.Text = "Exit"
  302. ExitButton2.TextColor3 = Color3.new(0, 0, 0)
  303. ExitButton2.TextScaled = true
  304. ExitButton2.TextSize = 14
  305. ExitButton2.TextWrapped = true
  306. ExitButton2.MouseButton1Down:connect(function()
  307. MainFrame3.Visible = false
  308. MainFrame1.Visible = true
  309. activated2 = false
  310. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement