Advertisement
Guest User

Untitled

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