Advertisement
Guest User

What CB Deserves Anti Kck And AIMBOT

a guest
Oct 18th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.54 KB | None | 0 0
  1. --Made by PPainez Rhis is what CB Deserves
  2. --Enjoy!
  3. --Works against all kicks including IYkick
  4. --Give credit if used and dont abuse!
  5. wait(1)
  6. print("Checking if Anti_Kick is already running.")
  7. wait(2)
  8. table.foreach(workspace:GetChildren(),function(a,b) if b.Name=="Anti_Kicklul" then game:GetService("Workspace").Anti_Kicklul:Destroy() end end)
  9. wait(1)
  10. warn("Initializing Anti Kick... DM <-[Tohru]->#6917 via Discord for questions...")
  11. wait(1.5)
  12. Instance.new("BoolValue",workspace).Name="Anti_Kicklul"
  13. AK=math.random(1,2)
  14. if AK==1 then
  15. game.Workspace.Anti_Kicklul.Value = true
  16. elseif AK==2 then
  17. game.Workspace.Anti_Kicklul.Value = false
  18. end
  19. wait(2.5)
  20. AntiKick = game.Workspace.Anti_Kicklul.Value
  21. if AntiKick == true then
  22. print("Anti kick has loaded and is now running. Took [8] Seconds!")
  23. elseif AntiKick == false then
  24. print("Anti kick failed to run! Run Script again")
  25. end
  26. wait(1)
  27. if AntiKick ==true then
  28. game:GetService("Players").LocalPlayer.Character.Humanoid.Health = 0
  29. print("Character Respawned. Anti Kick Should Work Fine Now!")
  30. end
  31. local plrs = game:GetService("Players")
  32. local TeamBased = true ; local teambasedswitch = "o"
  33. local presskeytoaim = true; local aimkey = "e"
  34. local raycast = false
  35.  
  36. local espupdatetime = 5; autoesp = false
  37.  
  38.  
  39.  
  40. local lockaim = true; local lockangle = 5
  41.  
  42.  
  43.  
  44. --function findwat(folder, what)
  45. -- for i, smth in pairs(folder:GetChildren()) do
  46. -- if string.find(string.lower(tostring(smth)), string.lower(what)) then
  47. -- return smth
  48. -- end
  49. -- end
  50. --end
  51. --
  52. --local plrs = findwat(game, "Players")
  53.  
  54.  
  55.  
  56.  
  57. local Gui = Instance.new("ScreenGui")
  58. local Move = Instance.new("Frame")
  59. local Main = Instance.new("Frame")
  60. local EspStatus = Instance.new("TextLabel")
  61. local st1 = Instance.new("TextLabel")
  62. local st1_2 = Instance.new("TextLabel")
  63. local st1_3 = Instance.new("TextLabel")
  64. local Name = Instance.new("TextLabel")
  65. --Properties:
  66. Gui.Name = "Gui"
  67. Gui.Parent = plrs.LocalPlayer:WaitForChild("PlayerGui")
  68.  
  69. Move.Name = "Move"
  70. Move.Parent = Gui
  71. Move.BackgroundColor3 = Color3.new(0.0431373, 1, 0.0745098)
  72. Move.BackgroundTransparency = 0.40000000596046
  73. Move.BorderSizePixel = 0
  74. Move.Position = UDim2.new(0.005, 0,0.018, 0)
  75. Move.Size = UDim2.new(0.28141585, 0, 0.0320388414, 0)
  76.  
  77. Main.Name = "Main"
  78. Main.Parent = Move
  79. Main.BackgroundColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  80. Main.BackgroundTransparency = 0.69999998807907
  81. Main.Position = UDim2.new(0, 0, 0.995670795, 0)
  82. Main.Size = UDim2.new(1.0000006, 0, 9.79697132, 0)
  83.  
  84. EspStatus.Name = "EspStatus"
  85. EspStatus.Parent = Main
  86. EspStatus.BackgroundColor3 = Color3.new(1, 1, 1)
  87. EspStatus.BackgroundTransparency = 1
  88. EspStatus.Size = UDim2.new(0.272955924, 0, 0.161862016, 0)
  89. EspStatus.Font = Enum.Font.ArialBold
  90. EspStatus.Text = "Press T to update Esp"
  91. EspStatus.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)
  92. EspStatus.TextScaled = true
  93. EspStatus.TextSize = 14
  94. EspStatus.TextWrapped = true
  95.  
  96. st1.Name = "st1"
  97. st1.Parent = Main
  98. st1.BackgroundColor3 = Color3.new(1, 1, 1)
  99. st1.BackgroundTransparency = 1
  100. st1.Position = UDim2.new(0.271787882, 0, 0, 0)
  101. st1.Size = UDim2.new(0.728211343, 0, 0.161862016, 0)
  102. st1.Font = Enum.Font.ArialBold
  103. st1.Text = "Press "..aimkey.." to lock on a person inside ur view"
  104. st1.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)
  105. st1.TextScaled = true
  106. st1.TextSize = 14
  107. st1.TextWrapped = true
  108.  
  109. st1_2.Name = "st1"
  110. st1_2.Parent = Main
  111. st1_2.BackgroundColor3 = Color3.new(1, 1, 1)
  112. st1_2.BackgroundTransparency = 1
  113. st1_2.Position = UDim2.new(0, 0, 0.375590861, 0)
  114. st1_2.Size = UDim2.new(0.999999881, 0, 0.161862016, 0)
  115. st1_2.Font = Enum.Font.ArialBold
  116. st1_2.Text = "Press L to enable esp loop"
  117. st1_2.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)
  118. st1_2.TextScaled = true
  119. st1_2.TextSize = 14
  120. st1_2.TextWrapped = true
  121.  
  122. st1_3.Name = "st1"
  123. st1_3.Parent = Main
  124. st1_3.BackgroundColor3 = Color3.new(1, 1, 1)
  125. st1_3.BackgroundTransparency = 1
  126. st1_3.Position = UDim2.new(0, 0, 0.18558608, 0)
  127. st1_3.Size = UDim2.new(0.999999881, 0, 0.161862016, 0)
  128. st1_3.Font = Enum.Font.ArialBold
  129. st1_3.Text = "Press O to change team based mode"
  130. st1_3.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)
  131. st1_3.TextScaled = true
  132. st1_3.TextSize = 14
  133. st1_3.TextWrapped = true
  134. local teambasedstatus = st1_3:Clone()
  135. teambasedstatus.Parent = st1_3
  136. teambasedstatus.TextScaled = true
  137. teambasedstatus.Position = UDim2.new(0, 0,0.694, 0)
  138. teambasedstatus.Text = tostring(TeamBased)
  139.  
  140. Name.Name = "Name"
  141. Name.Parent = Move
  142. Name.BackgroundColor3 = Color3.new(1, 1, 1)
  143. Name.BackgroundTransparency = 1
  144. Name.Size = UDim2.new(0.838, 0, 0.980000019, 0)
  145. Name.Font = Enum.Font.Arial
  146. Name.Text = "FPS gui v1.0"
  147. Name.TextColor3 = Color3.new(0, 0, 0)
  148. Name.TextScaled = true
  149. Name.TextSize = 14
  150. Name.TextWrapped = true
  151. Name.TextXAlignment = Enum.TextXAlignment.Left
  152. -- Scripts:
  153.  
  154.  
  155. local plrsforaim = {}
  156.  
  157. local lplr = game:GetService("Players").LocalPlayer
  158. Move.Draggable = true
  159. Gui.ResetOnSpawn = false
  160. Gui.Name = "Chat"
  161. Gui.DisplayOrder = 999
  162.  
  163. Gui.Parent = plrs.LocalPlayer.PlayerGui
  164.  
  165.  
  166. f = {}
  167. local espforlder
  168.  
  169. f.addesp = function()
  170. --print("ESP ran")
  171. if espforlder then
  172. else
  173. espforlder = Instance.new("Folder")
  174. espforlder.Parent = game.Workspace.CurrentCamera
  175. end
  176. for i, v in pairs(espforlder:GetChildren()) do
  177. v:Destroy()
  178. end
  179. for _, plr in pairs(plrs:GetChildren()) do
  180. if plr.Character and plr.Character.Humanoid.Health > 0 and plr.Name ~= lplr.Name then
  181. if TeamBased == true then
  182. if plr.Team.Name ~= plrs.LocalPlayer.Team.Name then
  183. local e = espforlder:FindFirstChild(plr.Name)
  184. if not e then
  185. --print("Added esp for team based")
  186. local bill = Instance.new("BillboardGui", espforlder)
  187. bill.Name = plr.Name
  188. bill.AlwaysOnTop = true
  189. bill.Size = UDim2.new(1,0,1,0)
  190. bill.Adornee = plr.Character.Head
  191. local Frame = Instance.new('Frame',bill)
  192. Frame.Active = true
  193. Frame.BackgroundColor3 = Color3.new(0/255,255/255,0/255)
  194. Frame.BackgroundTransparency = 0
  195. Frame.BorderSizePixel = 0
  196. Frame.AnchorPoint = Vector2.new(.5, .5)
  197. Frame.Position = UDim2.new (0.5,0,0.5,0)
  198. Frame.Size = UDim2.new (1,0,1,0)
  199. Frame.Rotation = 0
  200. plr.Character.Humanoid.Died:Connect(function()
  201. bill:Destroy()
  202. end)
  203. end
  204. end
  205. else
  206. local e = espforlder:FindFirstChild(plr.Name)
  207. if not e then
  208. --print("Added esp")
  209. local bill = Instance.new("BillboardGui", espforlder)
  210. bill.Name = plr.Name
  211. bill.AlwaysOnTop = true
  212. bill.Size = UDim2.new(1,0,1,0)
  213. bill.Adornee = plr.Character.Head
  214. local Frame = Instance.new('Frame',bill)
  215. Frame.Active = true
  216. Frame.BackgroundColor3 = Color3.new(0/255,255/255,0/255)
  217. Frame.BackgroundTransparency = 0
  218. Frame.BorderSizePixel = 0
  219. Frame.AnchorPoint = Vector2.new(.5, .5)
  220. Frame.Position = UDim2.new (0.5,0,0.5,0)
  221. Frame.Size = UDim2.new (1,0,1,0)
  222. Frame.Rotation = 0
  223. plr.Character.Humanoid.Died:Connect(function()
  224. bill:Destroy()
  225. end)
  226. end
  227. end
  228.  
  229.  
  230. end
  231. end
  232. end
  233. local cam = game.Workspace.CurrentCamera
  234.  
  235. local mouse = lplr:GetMouse()
  236. local switch = false
  237. local key = "k"
  238. local aimatpart = nil
  239. mouse.KeyDown:Connect(function(a)
  240. if a == "t" then
  241. print("worked1")
  242. f.addesp()
  243. elseif a == "u" then
  244. if raycast == true then
  245. raycast = false
  246. else
  247. raycast = true
  248. end
  249. elseif a == "l" then
  250. if autoesp == false then
  251. autoesp = true
  252. else
  253. autoesp = false
  254. end
  255. end
  256. if a == "j" then
  257. if mouse.Target then
  258. mouse.Target:Destroy()
  259. end
  260. end
  261. if a == key then
  262. if switch == false then
  263. switch = true
  264. else
  265. switch = false
  266. if aimatpart ~= nil then
  267. aimatpart = nil
  268. end
  269. end
  270. elseif a == teambasedswitch then
  271. if TeamBased == true then
  272. TeamBased = false
  273. teambasedstatus.Text = tostring(TeamBased)
  274. else
  275. TeamBased = true
  276. teambasedstatus.Text = tostring(TeamBased)
  277. end
  278. elseif a == aimkey then
  279. if not aimatpart then
  280. local maxangle = math.rad(20)
  281. for i, plr in pairs(plrs:GetChildren()) do
  282. if plr.Name ~= lplr.Name and plr.Character and plr.Character.Head and plr.Character.Humanoid and plr.Character.Humanoid.Health > 1 then
  283. if TeamBased == true then
  284. if plr.Team.Name ~= lplr.Team.Name then
  285. local an = checkfov(plr.Character.Head)
  286. if an < maxangle then
  287. maxangle = an
  288. aimatpart = plr.Character.Head
  289. end
  290. end
  291. else
  292. local an = checkfov(plr.Character.Head)
  293. if an < maxangle then
  294. maxangle = an
  295. aimatpart = plr.Character.Head
  296. end
  297. print(plr)
  298. end
  299. plr.Character.Humanoid.Died:Connect(function()
  300. if aimatpart.Parent == plr.Character or aimatpart == nil then
  301. aimatpart = nil
  302. end
  303. end)
  304. end
  305. end
  306. else
  307. aimatpart = nil
  308. end
  309. end
  310. end)
  311.  
  312. function getfovxyz (p0, p1, deg)
  313. local x1, y1, z1 = p0:ToOrientation()
  314. local cf = CFrame.new(p0.p, p1.p)
  315. local x2, y2, z2 = cf:ToOrientation()
  316. --local d = math.deg
  317. if deg then
  318. --return Vector3.new(d(x1-x2), d(y1-y2), d(z1-z2))
  319. else
  320. return Vector3.new((x1-x2), (y1-y2), (z1-z2))
  321. end
  322. end
  323.  
  324. function getaimbotplrs()
  325. plrsforaim = {}
  326. for i, plr in pairs(plrs:GetChildren()) do
  327. if plr.Character and plr.Character.Humanoid and plr.Character.Humanoid.Health > 0 and plr.Name ~= lplr.Name and plr.Character.Head then
  328.  
  329. if TeamBased == true then
  330. if plr.Team.Name ~= lplr.Team.Name then
  331. local cf = CFrame.new(game.Workspace.CurrentCamera.CFrame.p, plr.Character.Head.CFrame.p)
  332. local r = Ray.new(cf, cf.LookVector * 10000)
  333. local ign = {}
  334. for i, v in pairs(plrs.LocalPlayer.Character:GetChildren()) do
  335. if v:IsA("BasePart") then
  336. table.insert(ign , v)
  337. end
  338. end
  339. local obj = game.Workspace:FindPartOnRayWithIgnoreList(r, ign)
  340. if obj.Parent == plr.Character and obj.Parent ~= lplr.Character then
  341. table.insert(plrsforaim, obj)
  342. end
  343. end
  344. else
  345. local cf = CFrame.new(game.Workspace.CurrentCamera.CFrame.p, plr.Character.Head.CFrame.p)
  346. local r = Ray.new(cf, cf.LookVector * 10000)
  347. local ign = {}
  348. for i, v in pairs(plrs.LocalPlayer.Character:GetChildren()) do
  349. if v:IsA("BasePart") then
  350. table.insert(ign , v)
  351. end
  352. end
  353. local obj = game.Workspace:FindPartOnRayWithIgnoreList(r, ign)
  354. if obj.Parent == plr.Character and obj.Parent ~= lplr.Character then
  355. table.insert(plrsforaim, obj)
  356. end
  357. end
  358.  
  359.  
  360. end
  361. end
  362. end
  363.  
  364. function aimat(part)
  365. cam.CFrame = CFrame.new(cam.CFrame.p, part.CFrame.p)
  366. end
  367. function checkfov (part)
  368. local fov = getfovxyz(game.Workspace.CurrentCamera.CFrame, part.CFrame)
  369. local angle = math.abs(fov.X) + math.abs(fov.Y)
  370. return angle
  371. end
  372.  
  373. game:GetService("RunService").RenderStepped:Connect(function()
  374. if aimatpart then
  375. aimat(aimatpart)
  376. if aimatpart.Parent == plrs.LocalPlayer.Character then
  377. aimatpart = nil
  378. end
  379. end
  380.  
  381.  
  382. -- if switch == true then
  383. -- local maxangle = 99999
  384. --
  385. -- --print("Loop")
  386. -- if true and raycast == false then
  387. -- for i, plr in pairs(plrs:GetChildren()) do
  388. -- if plr.Name ~= lplr.Name and plr.Character and plr.Character.Head and plr.Character.Humanoid and plr.Character.Humanoid.Health > 1 then
  389. -- if TeamBased then
  390. -- if plr.Team.Name ~= lplr.Team.Name or plr.Team.TeamColor ~= lplr.Team.TeamColor then
  391. -- local an = checkfov(plr.Character.Head)
  392. -- if an < maxangle then
  393. -- maxangle = an
  394. -- aimatpart = plr.Character.Head
  395. -- if an < lockangle then
  396. -- break
  397. -- end
  398. -- end
  399. -- end
  400. -- else
  401. -- local an = checkfov(plr.Character.Head)
  402. -- if an < maxangle then
  403. -- maxangle = an
  404. -- aimatpart = plr.Character.Head
  405. -- if an < lockangle then
  406. -- break
  407. -- end
  408. -- end
  409. -- end
  410. --
  411. --
  412. --
  413. --
  414. -- end
  415. -- end
  416. -- elseif raycast == true then
  417. --
  418. -- end
  419.  
  420. if raycast == true and switch == false and not aimatpart then
  421. getaimbotplrs()
  422. aimatpart = nil
  423. local maxangle = 999
  424. for i, v in ipairs(plrsforaim) do
  425. if v.Parent ~= lplr.Character then
  426. local an = checkfov(v)
  427. if an < maxangle and v ~= lplr.Character.Head then
  428. maxangle = an
  429. aimatpart = v
  430. print(v:GetFullName())
  431. v.Parent.Humanoid.Died:connect(function()
  432. aimatpart = nil
  433. end)
  434. end
  435. end
  436. end
  437.  
  438. end
  439. end)
  440. delay(0, function()
  441. while wait(espupdatetime) do
  442. if autoesp == true then
  443. pcall(function()
  444. f.addesp()
  445. end)
  446. end
  447. end
  448. end)
  449. warn("loaded")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement