Advertisement
Anonymouse10101

Untitled

May 5th, 2021
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.50 KB | None | 0 0
  1. --V2.1, check v3rm thread to see if this is updated: https://v3rmillion.net/showthread.php?tid=1114065
  2.  
  3. repeat wait() until game:GetService("Players").LocalPlayer.Character
  4.  
  5. local tweenspeed = _G.tweenspeed or 120
  6. local mobName = "Wolf"
  7. local questName = "Dangerous Wolves"
  8.  
  9. -- For Non-Synapse Users (credits to egg salad)
  10. if not pcall(function() return syn.protect_gui end) then
  11. syn = {}
  12. syn.protect_gui = function(egg)
  13. egg.Parent = game.CoreGui
  14. end
  15. end
  16.  
  17. local collideOn = true
  18. local parts = {}
  19. local function collideParts()
  20. if noclip and collideOn then
  21. collideOn = false
  22. for i,v in pairs(workspace:GetDescendants()) do
  23. if v.Name ~= "Baseplate" and v:IsA("BasePart") and v.CanCollide == true then
  24. table.insert(parts, v)
  25. v.CanCollide = false
  26. end
  27. end
  28. workspace.DescendantAdded:Connect(function(des)
  29. if noclip and des:IsA("BasePart") and des.CanCollide == true then
  30. des.CanCollide = false
  31. table.insert(parts, v)
  32. end
  33. end)
  34. elseif not collideOn then
  35. collideOn = true
  36. for i,v in ipairs(parts) do
  37. pcall(function()
  38. v.CanCollide = true
  39. end)
  40. end
  41. parts = {}
  42. end
  43. end
  44.  
  45. local baseplatecollideOn = true
  46. local baseplateparts = {}
  47. local function baseplateCollideParts()
  48. if (farm or autoQuest) and baseplatecollideOn then
  49. baseplatecollideOn = false
  50. for i,v in pairs(workspace:GetDescendants()) do
  51. if v.Name == "Baseplate" and v:IsA("BasePart") and v.CanCollide == true then
  52. table.insert(baseplateparts, v)
  53. v.CanCollide = false
  54. end
  55. end
  56. elseif not autoquest and not farm and not baseplatecollideOn then
  57. baseplatecollideOn = true
  58. for i,v in ipairs(baseplateparts) do
  59. pcall(function()
  60. v.CanCollide = true
  61. end)
  62. end
  63. baseplateparts = {}
  64. end
  65. end
  66.  
  67.  
  68. iyflyspeed = 1
  69.  
  70. local Players = game:GetService("Players")
  71. local LP = Players.LocalPlayer
  72. local LocalPlayer = Players.LocalPlayer
  73. local Mouse = Players.LocalPlayer:GetMouse()
  74.  
  75. local CONTROL = {F = 0, B = 0, L = 0, R = 0}
  76. local lCONTROL = {F = 0, B = 0, L = 0, R = 0}
  77.  
  78. local isFlying = false
  79. function sFLY() -- from rocky2u cmdscript
  80. repeat wait() until LP and LP.Character and LP.Character:FindFirstChild('HumanoidRootPart') and LP.Character:FindFirstChild('Humanoid')
  81. game.Players.LocalPlayer.Character.HumanoidRootPart.Anchored = true
  82. repeat wait() until Mouse
  83. local T = game.Players.LocalPlayer.Character.HumanoidRootPart
  84. CONTROL = {F = 0, B = 0, L = 0, R = 0}
  85. lCONTROL = {F = 0, B = 0, L = 0, R = 0}
  86. local SPEED = 0
  87.  
  88. local function FLY()
  89. FLYING = true
  90. for i,v in pairs(getconnections(T.ChildAdded)) do
  91. v:Disable()
  92. end
  93. for i,v in pairs(getconnections(T.DescendantAdded)) do
  94. v:Disable()
  95. end
  96. for i,v in pairs(getconnections(T.Parent.DescendantAdded)) do
  97. v:Disable()
  98. end
  99. local BG = Instance.new('BodyGyro', T)
  100. local BV = Instance.new('BodyVelocity', T)
  101. BG.P = 9e4
  102. BG.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  103. BG.cframe = T.CFrame
  104. BV.velocity = Vector3.new(0, 0.1, 0)
  105. BV.maxForce = Vector3.new(9e9, 9e9, 9e9)
  106. spawn(function()
  107. repeat wait()
  108. if CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0 then
  109. SPEED = 50
  110. elseif not (CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0) and SPEED ~= 0 then
  111. SPEED = 0
  112. end
  113. if (CONTROL.L + CONTROL.R) ~= 0 or (CONTROL.F + CONTROL.B) ~= 0 then
  114. BV.velocity = ((workspace.CurrentCamera.CoordinateFrame.lookVector * (CONTROL.F + CONTROL.B)) + ((workspace.CurrentCamera.CoordinateFrame * CFrame.new(CONTROL.L + CONTROL.R, (CONTROL.F + CONTROL.B) * 0.2, 0).p) - workspace.CurrentCamera.CoordinateFrame.p)) * SPEED
  115. lCONTROL = {F = CONTROL.F, B = CONTROL.B, L = CONTROL.L, R = CONTROL.R}
  116. elseif (CONTROL.L + CONTROL.R) == 0 and (CONTROL.F + CONTROL.B) == 0 and SPEED ~= 0 then
  117. BV.velocity = ((workspace.CurrentCamera.CoordinateFrame.lookVector * (lCONTROL.F + lCONTROL.B)) + ((workspace.CurrentCamera.CoordinateFrame * CFrame.new(lCONTROL.L + lCONTROL.R, (lCONTROL.F + lCONTROL.B) * 0.2, 0).p) - workspace.CurrentCamera.CoordinateFrame.p)) * SPEED
  118. else
  119. BV.velocity = Vector3.new(0, 0.1, 0)
  120. end
  121. BG.cframe = workspace.CurrentCamera.CoordinateFrame
  122. until not FLYING
  123. CONTROL = {F = 0, B = 0, L = 0, R = 0}
  124. lCONTROL = {F = 0, B = 0, L = 0, R = 0}
  125. SPEED = 0
  126. BG:destroy()
  127. BV:destroy()
  128. end)
  129. end
  130. Mouse.KeyDown:connect(function(KEY)
  131. if KEY:lower() == 'w' then
  132. CONTROL.F = iyflyspeed
  133. elseif KEY:lower() == 's' then
  134. CONTROL.B = -iyflyspeed
  135. elseif KEY:lower() == 'a' then
  136. CONTROL.L = -iyflyspeed
  137. elseif KEY:lower() == 'd' then
  138. CONTROL.R = iyflyspeed
  139. end
  140. end)
  141. Mouse.KeyUp:connect(function(KEY)
  142. if KEY:lower() == 'w' then
  143. CONTROL.F = 0
  144. elseif KEY:lower() == 's' then
  145. CONTROL.B = 0
  146. elseif KEY:lower() == 'a' then
  147. CONTROL.L = 0
  148. elseif KEY:lower() == 'd' then
  149. CONTROL.R = 0
  150. end
  151. end)
  152. if WHeld then
  153. CONTROL.F = iyflyspeed
  154. end
  155. if SHeld then
  156. CONTROL.B = -iyflyspeed
  157. end
  158. FLY()
  159. game.Players.LocalPlayer.Character.HumanoidRootPart.Anchored = false
  160. end
  161.  
  162. function NOFLY()
  163. isFlying = false
  164. FLYING = false
  165. end
  166.  
  167. function startflying()
  168. isFlying = true
  169. sFLY()
  170. local Float = Instance.new('Part', game.Players.LocalPlayer.Character)
  171. Float.Name = 'Float'
  172. Float.Transparency = 1
  173. Float.Size = Vector3.new(6,1,6)
  174. Float.Anchored = true
  175. end
  176.  
  177. local walkspeed = 16
  178. local jumppower = 50
  179.  
  180. local lib = loadstring(game:HttpGet('https://raw.githubusercontent.com/obeseinsect/ok/main/ok.lua', true))()
  181. local window = lib:CreateWindow('PPHAX v2.1 - Era Of Althea')
  182. window:AddLabel({text = "FireTzron @ V3rmillion - Remake"})
  183. window:AddToggle({text = 'Auto Quest', state = autoQuest, callback = function(v) autoQuest = v; collideParts(); baseplateCollideParts() end})
  184. window:AddList({text = 'Quest Chooser', state = questName, values = {"Dangerous Wolves", "Dire Wolf", "Atreyu Labyrinth", "Rocky Attack", "Ronbaru Labyrinth", "Abu Madness", "Rocky Attack"}, callback = function(v) questName = v end})
  185. window:AddToggle({text = 'Auto Farm', state = farm, callback = function(v) farm = v; collideParts(); baseplateCollideParts() end})
  186. window:AddList({text = 'Mob', state = mobName, values = {"Wolf","Dire Wolf","Orc", "Golem", "Abu", "Stork", "G-Knight", "Thonk, The Orc Lord", "Hleam Eyes"}, callback = function(v) mobName = v end})
  187. window:AddToggle({text = 'Auto Attack', state = autoAttack, callback = function(v) autoAttack = v end})
  188. window:AddToggle({text = 'Anti Afk', state = antiafk, callback = function(v) antiafk = v end})
  189.  
  190.  
  191. local window2 = lib:CreateWindow('Movement')
  192. window2:AddToggle({text = 'NoClip', state = noclip, callback = function(v)
  193. noclip = v
  194. collideParts()
  195. end})
  196. window2:AddToggle({text = 'No Jump Cooldown', state = nojumpCooldown, callback = function(v)
  197. nojumpCooldown = v
  198. repeat wait() until LocalPlayer.Character and LocalPlayer.Character.JumpCooldown
  199. LocalPlayer.Character.JumpCooldown.Disabled = nojumpCooldown
  200. end})
  201. window2:AddBind({text = 'Fly', hold = false, key = "H", callback = function()
  202. if not isFlying then
  203. startflying()
  204. elseif isFlying then
  205. NOFLY()
  206. if game.Players.LocalPlayer.Character then
  207. if game.Players.LocalPlayer.Character:FindFirstChild("Float") then
  208. game.Players.LocalPlayer.Character:FindFirstChild("Float"):Destroy()
  209. end
  210. end
  211. local AnimationTracks = game.Players.LocalPlayer.Character.Humanoid:GetPlayingAnimationTracks()
  212. for i, track in pairs (AnimationTracks) do
  213. track:Stop()
  214. end
  215. end
  216. end})
  217. window2:AddSlider({text = 'FlySpeed', flag = "slider1", value = 1, min = .45, max = 10, callback = function(v) iyflyspeed = v end})
  218. window2:AddSlider({text = 'WalkSpeed', flag = "slider1", value = 16, min = 16, max = 200, callback = function(v) walkspeed = v end})
  219. window2:AddSlider({text = 'JumpPower', flag = "slider1", value = 50, min = 50, max = 100, callback = function(v) jumppower = v end})
  220.  
  221. local window3 = lib:CreateWindow('Visuals')
  222. window3:AddToggle({text = 'Player Chams', state = playerchams, callback = function(v)
  223. playerchams = v
  224. for i,v in pairs(game:GetService("CoreGui"):WaitForChild("PLAYERCHAMS").Folder:GetChildren()) do
  225. v.Visible = playerchams
  226. end
  227. end})
  228.  
  229. window3:AddToggle({text = 'Player ESP', state = playeresp, callback = function(v)
  230. playeresp = v
  231. for _,plr in pairs(game:GetService("Players"):GetPlayers()) do
  232. local plrchar = plr.Character
  233. if plr ~= LP and plrchar and plrchar.Head then
  234. plrchar.Head.ESP.Enabled = playeresp
  235. if v then
  236. plrchar:WaitForChild('Humanoid').DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
  237. else
  238. plrchar:WaitForChild('Humanoid').DisplayDistanceType = Enum.HumanoidDisplayDistanceType.Viewer
  239. end
  240. end
  241. end
  242. end})
  243.  
  244. window3:AddToggle({text = 'Player Health ESP', state = playerhealthesp, callback = function(v)
  245. playerhealthesp = v
  246. for _,plr in pairs(game:GetService("Players"):GetPlayers()) do
  247. local plrchar = plr.Character
  248. if plr ~= LP and plrchar and plrchar.HumanoidRootPart then
  249. plrchar.HumanoidRootPart.HEALTHESP.Enabled = playerhealthesp
  250. end
  251. end
  252. end})
  253.  
  254. window3:AddToggle({text = 'Mob ESP', state = mobesp, callback = function(v)
  255. mobesp = v
  256. for _,mob in pairs(workspace.NPCS:GetChildren()) do
  257. for _, hitbox in pairs(mob:GetChildren()) do
  258. if hitbox.Name == "Hitbox" then
  259. hitbox.ESP.Enabled = mobesp
  260. end
  261. end
  262. end
  263. end})
  264.  
  265. window3:AddToggle({text = 'Mob Health ESP', state = mobhealthesp, callback = function(v)
  266. mobhealthesp = v
  267. for _,mob in pairs(workspace.NPCS:GetChildren()) do
  268. for _, hitbox in pairs(mob:GetChildren()) do
  269. if hitbox.Name == "Hitbox" then
  270. hitbox.HEALTHESP.Enabled = mobhealthesp
  271. end
  272. end
  273. end
  274. end})
  275.  
  276. lib:Init()
  277.  
  278. local plr = game:GetService("Players").LocalPlayer
  279. local char = plr.Character
  280.  
  281. local GameMt = getrawmetatable(game)
  282. local OldNameCall = GameMt.__namecall
  283.  
  284. setreadonly(GameMt, false)
  285.  
  286. local index = GameMt.__index
  287. local newindex = GameMt.__newindex
  288.  
  289. local spoofWS = plr.Character.Humanoid.WalkSpeed
  290. local spoofJP = plr.Character.Humanoid.JumpPower
  291.  
  292. GameMt.__index = newcclosure(function(t,i)
  293. -- index = "WalkSpeed"
  294. -- table = "Humanoid"
  295. if not checkcaller() then
  296. if tostring(i) == "WalkSpeed" then
  297. return spoofWS
  298. elseif tostring(i) == "JumpPower" then
  299. return spoofJP
  300. elseif tostring(i) == "CanCollide" then
  301. return true
  302. elseif tostring(i) == "BodyGyro" then
  303. print("ahhh goo stoopid")
  304. return false
  305. elseif tostring(i) == "BodyVelocity" then
  306. print("ahhh goo stoopidddd")
  307. return false
  308. end
  309. end
  310. return index(t,i)
  311. end)
  312. local a = true
  313. GameMt.__namecall = newcclosure(function(Self, ...)
  314. local Args = {...}
  315. local NamecallMethod = getnamecallmethod()
  316. if not checkcaller() then
  317. if (tostring(Self) == "UpdateLocation" or tostring(Self) == "ServerCheck") and NamecallMethod == "FireServer" and Args[1] == nil then
  318. print(tostring(Self), NamecallMethod)
  319. --return wait(9e9)
  320. end
  321. if (NamecallMethod == "Kick" or NamecallMethod == "kick") then
  322. return wait(9e9)
  323. end
  324. if (NamecallMethod == "FindFirstChild" or NamecallMethod == "WaitForChild" or NamecallMethod == "FindFirstChildWhichIsA" or NamecallMethod == "FindFirstColdOfClass") and Args[1] == "BodyVelocity" then
  325. return
  326. end
  327. end
  328. return OldNameCall(Self, ...)
  329. end)
  330.  
  331. local OldIndex = GameMt.__index
  332.  
  333. GameMt.__index = newcclosure(function(Self, Key)
  334. if not checkcaller() and Key == "BillboardGui" then
  335. return nil
  336. end
  337.  
  338. return OldIndex(Self, Key)
  339. end)
  340.  
  341. setreadonly(GameMt, true)
  342.  
  343. local function espMob(mob)
  344. for i,v in pairs(getconnections(mob.Hitbox.ChildAdded)) do
  345. v:Disable()
  346. end
  347. local billgui = Instance.new('BillboardGui', mob.Hitbox)
  348. local textlab = Instance.new('TextLabel', billgui)
  349.  
  350. billgui.Name = "ESP"
  351. billgui.AlwaysOnTop = true
  352. billgui.ExtentsOffset = Vector3.new(0, 3, 0)
  353. billgui.Size = UDim2.new(10, 0, 10, 0)
  354.  
  355. textlab.Name = 'Mob'
  356. textlab.BackgroundColor3 = Color3.new(255, 255, 255)
  357. textlab.BackgroundTransparency = 1
  358. textlab.BorderSizePixel = 0
  359. textlab.Position = UDim2.new(0, 0, 0, 0)
  360. textlab.Size = UDim2.new(1, 0, 1, 0)
  361. textlab.Visible = true
  362. textlab.ZIndex = 10
  363. textlab.Font = 'SciFi'
  364. textlab.FontSize = 'Size14'
  365. textlab.Text = mob.Name
  366. textlab.TextTransparency = 0
  367. textlab.TextStrokeTransparency = 1
  368. textlab.TextColor3 = Color3.fromRGB(42, 163, 255)
  369. if not mobesp then
  370. billgui.Enabled = false
  371. end
  372. end
  373.  
  374. local mobMaxHealth = {}
  375.  
  376. for _,mob in pairs(workspace.NPCS:GetChildren()) do
  377. for i,v in pairs(mob:GetChildren()) do
  378. if v:FindFirstChild("Hitbox") == nil then
  379. mobMaxHealth[mob.Name] = {maxhealth = mob.Health.Value}
  380. end
  381. end
  382. end
  383. mobMaxHealth["Wolf"] = {maxhealth = 100} --idk why it defaults to 15 if i dont do this
  384.  
  385. local function createmobHealthbar(mob)
  386. --print("healthing " .. player.Name)
  387. for i,v in pairs(getconnections(mob.Hitbox.ChildAdded)) do
  388. v:Disable()
  389. end
  390. local billgui = Instance.new('BillboardGui', mob.Hitbox)
  391. local textlab = Instance.new('TextLabel', billgui)
  392.  
  393. billgui.Name = "HEALTHESP"
  394. billgui.AlwaysOnTop = true
  395. billgui.ExtentsOffset = Vector3.new(0, 2, 0)
  396. billgui.Size = UDim2.new(10, 0, 10, 0)
  397. billgui.MaxDistance = 200
  398.  
  399. textlab.Name = 'health'
  400. textlab.BackgroundColor3 = Color3.new(255, 255, 255)
  401. textlab.BackgroundTransparency = 1
  402. textlab.BorderSizePixel = 0
  403. textlab.Position = UDim2.new(0, 0, 0, 0)
  404. textlab.Size = UDim2.new(1, 0, 1, 0)
  405. textlab.Visible = true
  406. textlab.ZIndex = 10
  407. textlab.Font = 'SciFi'
  408. textlab.FontSize = 'Size14'
  409. textlab.Text = mob.Health.Value .. "/" .. mobMaxHealth[mob.Name].maxhealth
  410. textlab.TextTransparency = 0
  411. textlab.TextStrokeTransparency = 1
  412. textlab.TextColor3 = Color3.fromRGB(167, 17, 17)
  413. --player.Character:WaitForChild('Humanoid').DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
  414. if not mobhealthesp then
  415. billgui.Enabled = false
  416. end
  417. mob.Health:GetPropertyChangedSignal("Value"):Connect(function() --//Triggers when any Property changed
  418. if mob and mob.Health then
  419. textlab.Text = mob.Health.Value .. "/" .. mobMaxHealth[mob.Name].maxhealth
  420. end
  421. end)
  422. end
  423.  
  424.  
  425. for _,mob in pairs(workspace.NPCS:GetChildren()) do
  426. if mob and mob:FindFirstChild("Hitbox") then
  427. espMob(mob)
  428. createmobHealthbar(mob)
  429. end
  430. end
  431.  
  432. workspace.NPCS.ChildAdded:Connect(function(mob)
  433. if mob then
  434. mob:WaitForChild("Hitbox")
  435. mob:WaitForChild("Health")
  436. espMob(mob)
  437. createmobHealthbar(mob)
  438. end
  439. end)
  440.  
  441.  
  442. local function espPlayer(player)
  443. for i,v in pairs(getconnections(player.Character.Head.ChildAdded)) do
  444. v:Disable()
  445. end
  446. local billgui = Instance.new('BillboardGui', player.Character.Head)
  447. local textlab = Instance.new('TextLabel', billgui)
  448.  
  449. billgui.Name = "ESP"
  450. billgui.AlwaysOnTop = true
  451. billgui.ExtentsOffset = Vector3.new(0, 3, 0)
  452. billgui.Size = UDim2.new(10, 0, 10, 0)
  453.  
  454. textlab.Name = 'Player'
  455. textlab.BackgroundColor3 = Color3.new(255, 255, 255)
  456. textlab.BackgroundTransparency = 1
  457. textlab.BorderSizePixel = 0
  458. textlab.Position = UDim2.new(0, 0, 0, 0)
  459. textlab.Size = UDim2.new(1, 0, 1, 0)
  460. textlab.Visible = true
  461. textlab.ZIndex = 10
  462. textlab.Font = 'SciFi'
  463. textlab.FontSize = 'Size14'
  464. textlab.Text = player.Name
  465. textlab.TextTransparency = 0
  466. textlab.TextStrokeTransparency = 1
  467. textlab.TextColor3 = Color3.fromRGB(0,255,127)
  468. --player.Character:WaitForChild('Humanoid').DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
  469. if not playeresp then
  470. billgui.Enabled = false
  471. end
  472. end
  473.  
  474. local function createHealthbar(player)
  475. --print("healthing " .. player.Name)
  476. for i,v in pairs(getconnections(player.Character.Head.ChildAdded)) do
  477. v:Disable()
  478. end
  479. local hrp = player.Character:WaitForChild("HumanoidRootPart")
  480. local billgui = Instance.new('BillboardGui', hrp)
  481. local textlab = Instance.new('TextLabel', billgui)
  482.  
  483. billgui.Name = "HEALTHESP"
  484. billgui.AlwaysOnTop = true
  485. billgui.ExtentsOffset = Vector3.new(0, 2, 0)
  486. billgui.Size = UDim2.new(10, 0, 10, 0)
  487. billgui.MaxDistance = 200
  488.  
  489. textlab.Name = 'health'
  490. textlab.BackgroundColor3 = Color3.new(255, 255, 255)
  491. textlab.BackgroundTransparency = 1
  492. textlab.BorderSizePixel = 0
  493. textlab.Position = UDim2.new(0, 0, 0, 0)
  494. textlab.Size = UDim2.new(1, 0, 1, 0)
  495. textlab.Visible = true
  496. textlab.ZIndex = 10
  497. textlab.Font = 'SciFi'
  498. textlab.FontSize = 'Size14'
  499. textlab.Text = player.Character.Health.Value
  500. textlab.TextTransparency = 0
  501. textlab.TextStrokeTransparency = 1
  502. textlab.TextColor3 = Color3.fromRGB(0,0,0)
  503. --player.Character:WaitForChild('Humanoid').DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
  504. if not playerhealthesp then
  505. billgui.Enabled = false
  506. end
  507. player.Character.Health:GetPropertyChangedSignal("Value"):Connect(function() --//Triggers when any Property changed
  508. if hrp and hrp.Parent and hrp.Parent.Health then
  509. textlab.Text = player.Character.Health.Value
  510. end
  511. end)
  512. end
  513.  
  514. for _,player in pairs(game:GetService('Players'):GetPlayers()) do
  515. if player ~= Players.LocalPlayer then
  516. local char = player.Character or player.CharacterAdded:Wait()
  517. if char then
  518. player.Character:WaitForChild('Head')
  519. player.CharacterAdded:Connect(function(character)
  520. player.Character:WaitForChild('Head')
  521. espPlayer(player)
  522. createHealthbar(player)
  523. end)
  524. espPlayer(player)
  525. createHealthbar(player)
  526. end
  527. end
  528. end
  529.  
  530. game:GetService('Players').PlayerAdded:Connect(function(player)
  531. if player then
  532. --print(player, "has joined!")
  533. local char = player.Character or player.CharacterAdded:Wait()
  534. if char then
  535. player.Character:WaitForChild('Head')
  536. --print(char, "'s character has been found!")
  537. player.CharacterAdded:Connect(function(character)
  538. player.Character:WaitForChild('Head')
  539. player.Character:WaitForChild('Humanoid')
  540. espPlayer(player)
  541. createHealthbar(player)
  542. end)
  543. espPlayer(player)
  544. createHealthbar(player)
  545. end
  546. end
  547. end)
  548.  
  549. local ScreenGui = Instance.new("ScreenGui",game:GetService('CoreGui'))
  550. ScreenGui.Name = "PLAYERCHAMS"
  551. local ESPLocation = Instance.new("Folder",ScreenGui)
  552. local targetPlayer = ""
  553.  
  554. local Targets = {
  555. "HumanoidRootPart",
  556. --[["LeftLowerArm",
  557. "LeftUpperArm",
  558. "LowerTorso",
  559. "RightLowerArm",
  560. "RightUpperArm",
  561. "RightUpperLeg",
  562. "LeftLowerLeg",
  563. "LeftUpperLeg",
  564. "RightLowerLeg",
  565. "UpperTorso"--]]
  566. }
  567.  
  568.  
  569. function espPart(part,player)
  570. local esp = Instance.new("BoxHandleAdornment",ESPLocation)
  571. esp.Adornee = part
  572. esp.AlwaysOnTop = true
  573. esp.ZIndex = 1
  574. esp.Transparency = 0.7
  575. esp.Size = part.Size / 1.1
  576. if part.Name == "LeftHand" or part.Name == "RightHand" then
  577. esp.Size = part.Size - Vector3.new(0,1,0)
  578. end
  579. esp.Color3 = Color3.fromRGB(255,0,0)--player.TeamColor.Color
  580. if player.Name == targetPlayer then
  581. esp.Size = part.Size + Vector3.new(.1, .1, .1)
  582. esp.Color3 = Color3.fromRGB(255,255,0)
  583. end
  584. esp.MouseEnter:Connect(function()
  585. if player.Team ~= game:GetService('Players').LocalPlayer.Team then
  586. local currentFrame = esp
  587. end
  588. end)
  589.  
  590. player.CharacterRemoving:Connect(function()
  591. esp:Destroy()
  592. end)
  593. if player.Team then
  594. player.Team.PlayerRemoved:Connect(function(RemovedPlayer)
  595. if RemovedPlayer ~= player and RemovedPlayer ~= game:GetService('Players').LocalPlayer then
  596. return
  597. else
  598. esp.Color3 = player.TeamColor.Color
  599. end
  600. end)
  601. end
  602. return esp
  603. end
  604.  
  605. function espPlayer(player)
  606. if player.Character ~= nil then
  607. for _,part in pairs(player.Character:GetChildren())do
  608. if part:IsA("BasePart") and part.Name ~= "Head" and part.Name ~= "RightHand" and part.Name ~= "LeftHand" and part.Name ~= "LeftFoot" and part.Name ~= "RightFoot" then
  609. --print(part)
  610. local esp = espPart(part,player)
  611. if not playerchams then
  612. esp.Visible = false
  613. end
  614. end
  615. end
  616. end
  617. end
  618.  
  619. function ESP()
  620. ESPLocation:ClearAllChildren()
  621. for _,player in pairs(game:GetService('Players'):GetPlayers())do
  622. if player ~= game:GetService('Players').LocalPlayer then
  623. espPlayer(player)
  624. end
  625. end
  626. end
  627.  
  628. ESP()
  629. for i,v in pairs(ESPLocation:GetChildren()) do
  630. v.Visible = false
  631. end
  632.  
  633. local function WaitUntilCharacterLoaded(Char)
  634. for _,Part in pairs(Targets)do
  635. Char:WaitForChild(Part)
  636. end
  637. end
  638.  
  639. game:GetService('Players').PlayerAdded:Connect(function(Player)
  640. Player.CharacterAdded:Connect(function(Char)
  641. WaitUntilCharacterLoaded(Char)
  642. espPlayer(Player)
  643. end)
  644. end)
  645.  
  646. for _,Player in pairs(game:GetService('Players'):GetPlayers())do
  647. Player.CharacterAdded:Connect(function(Char)
  648. WaitUntilCharacterLoaded(Char)
  649. espPlayer(Player)
  650. end)
  651. end
  652.  
  653. char.Humanoid.WalkSpeed = walkspeed
  654. char.Humanoid.JumpPower = jumppower
  655. char.Humanoid.Changed:Connect(function()
  656. char.Humanoid.WalkSpeed = walkspeed
  657. char.Humanoid.JumpPower = jumppower
  658. end)
  659.  
  660. plr.CharacterAdded:Connect(function(char)
  661. if nojumpCooldown then
  662. char.JumpCooldown.Disabled = true
  663. end
  664. char.Humanoid.WalkSpeed = walkspeed
  665. char.Humanoid.JumpPower = jumppower
  666. char.Humanoid.Changed:Connect(function()
  667. char.Humanoid.WalkSpeed = walkspeed
  668. char.Humanoid.JumpPower = jumppower
  669. end)
  670. end)
  671.  
  672. local isTweening = false;
  673.  
  674. char.Humanoid.StateChanged:Connect(function(oldState, newState)
  675. if (isFlying or isTweening) and newState == Enum.HumanoidStateType.Freefall then
  676. char.Humanoid:ChangeState(Enum.HumanoidStateType.Running)
  677. end
  678. end)
  679.  
  680. plr.CharacterAdded:Connect(function(char)
  681. char.Humanoid.StateChanged:Connect(function(oldState, newState)
  682. if (isFlying or isTweening) and newState == Enum.HumanoidStateType.Freefall then
  683. char.Humanoid:ChangeState(Enum.HumanoidStateType.Running)
  684. end
  685. end)
  686. end)
  687.  
  688. local WHeld = false
  689. local SHeld = false
  690. local AHeld = false
  691. local DHeld = false
  692.  
  693. Mouse.KeyDown:Connect(function(key)
  694. if key == "w" then
  695. WHeld = true
  696. end
  697. end)
  698.  
  699. Mouse.KeyUp:Connect(function(key)
  700. if key == "w" then
  701. WHeld = false
  702. end
  703. end)
  704.  
  705. Mouse.KeyDown:Connect(function(key)
  706. if key == "s" then
  707. SHeld = true
  708. end
  709. end)
  710.  
  711. Mouse.KeyUp:Connect(function(key)
  712. if key == "s" then
  713. SHeld = false
  714. end
  715. end)
  716.  
  717. Mouse.KeyDown:Connect(function(key)
  718. if key == "a" then
  719. AHeld = true
  720. end
  721. end)
  722.  
  723. Mouse.KeyUp:Connect(function(key)
  724. if key == "a" then
  725. AHeld = false
  726. end
  727. end)
  728.  
  729.  
  730. Mouse.KeyDown:Connect(function(key)
  731. if key == "d" then
  732. DHeld = true
  733. end
  734. end)
  735.  
  736. Mouse.KeyUp:Connect(function(key)
  737. if key == "d" then
  738. DHeld = false
  739. end
  740. end)
  741.  
  742.  
  743. local UIS = game:GetService("UserInputService")
  744.  
  745. UIS.InputBegan:Connect(function(Input, GameProcessedEvent)
  746. if not GameProcessedEvent then
  747. if Input.KeyCode == Enum.KeyCode.LeftShift then
  748. walkspeed = walkspeed + 16
  749. iyflyspeed = iyflyspeed + .3
  750. if WHeld then
  751. CONTROL.F = iyflyspeed
  752. elseif SHeld then
  753. CONTROL.B = -iyflyspeed
  754. elseif AHeld then
  755. CONTROL.L = -iyflyspeed
  756. elseif DHeld then
  757. CONTROL.R = iyflyspeed
  758. end
  759. end
  760. end
  761. end)
  762.  
  763. UIS.InputEnded:Connect(function(Input, GameProcessedEvent)
  764. if Input.KeyCode == Enum.KeyCode.LeftShift then
  765. walkspeed = walkspeed - 16
  766. iyflyspeed = iyflyspeed - .3
  767. if WHeld then
  768. CONTROL.F = iyflyspeed
  769. elseif SHeld then
  770. CONTROL.B = -iyflyspeed
  771. elseif AHeld then
  772. CONTROL.L = -iyflyspeed
  773. elseif DHeld then
  774. CONTROL.R = iyflyspeed
  775. end
  776. end
  777. end)
  778.  
  779. local Players = game:GetService("Players")
  780. local LocalPlayer = Players.LocalPlayer
  781.  
  782. local function findNearestMob(mobname)
  783. local Character = LocalPlayer.Character
  784. local HumanoidRootPart = Character:FindFirstChild("HumanoidRootPart")
  785. if not (Character or HumanoidRootPart) then return end
  786. local TargetDistance = math.huge
  787. local Target
  788. for i,v in pairs(workspace.NPCS:GetChildren()) do
  789. if v.Name == mobname then
  790. if v:FindFirstChild("Hitbox") then
  791. local mag = (HumanoidRootPart.Position - v.Hitbox.Position).Magnitude
  792. if mag < TargetDistance then
  793. TargetDistance = mag
  794. Target = v.Hitbox
  795. end
  796. end
  797. end
  798. end
  799. return Target
  800. end
  801.  
  802.  
  803. local function tweenplayer(cframe,speed)
  804. repeat wait() until LocalPlayer.Character;
  805. isTweening = true
  806. and LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
  807. and LocalPlayer.Character:FindFirstChild("Humanoid")
  808. and LocalPlayer.Character:FindFirstChild("Humanoid").Health > 0
  809. local TweenInfo = TweenInfo.new(((cframe.Position - LocalPlayer.Character.HumanoidRootPart.Position).Magnitude)/speed, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 0, false)
  810. local Objective = {CFrame = cframe}
  811. local TweenPlayer = game:GetService("TweenService"):Create(LocalPlayer.Character.HumanoidRootPart, TweenInfo, Objective)
  812. --game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Anchored = true
  813. TweenPlayer:Play()
  814. TweenPlayer.Completed:Wait(); --wait(.1);
  815. --game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Anchored = false
  816. isTweening = false;
  817. end
  818.  
  819. local function checkValid(mob)
  820. local char = LocalPlayer.Character
  821. local HumanoidRootPart = char:FindFirstChild("HumanoidRootPart")
  822. if not (char or HumanoidRootPart) then return true end
  823. return not mob or not mob.Parent or mob.Parent.Health.Value <= 0 or char.Humanoid.Health <= 0
  824. end
  825.  
  826. local doingQuest = false
  827.  
  828. local function findNearestQuest()
  829. local Character = LocalPlayer.Character
  830. local HumanoidRootPart = Character:FindFirstChild("HumanoidRootPart")
  831. if not (Character or HumanoidRootPart) then return end
  832. local TargetDistance = math.huge
  833. local Target
  834. for i,v in pairs(workspace:GetDescendants()) do
  835. if v.Name == "Papers" then
  836. for a,b in pairs(v:GetDescendants()) do
  837. if b.Name == "QuestName" and b.Text == questName then
  838. local part = b.Parent.Parent.Parent
  839. local mag = (HumanoidRootPart.Position - part.Position).Magnitude
  840. if mag < TargetDistance then
  841. TargetDistance = mag
  842. Target = part
  843. end
  844. end
  845. end
  846. end
  847. end
  848. return Target
  849. end
  850.  
  851. local function doQuest()
  852. if not LocalPlayer.PlayerGui:FindFirstChild("Quest") and LocalPlayer.Character then
  853. local questPart = findNearestQuest()
  854. if questPart and not doingQuest then
  855. doingQuest = true
  856. char.HumanoidRootPart.Anchored = true
  857. if autoQuest then tweenplayer(LocalPlayer.Character.HumanoidRootPart.CFrame+Vector3.new(0,80,0),tweenspeed) end
  858. char.HumanoidRootPart.Anchored = false
  859. if autoQuest then tweenplayer(CFrame.new(questPart.Position+Vector3.new(0,80,0)),tweenspeed) end
  860. char.HumanoidRootPart.Anchored = true
  861. if autoQuest then tweenplayer(CFrame.new(questPart.Position+Vector3.new(-3,0,0)),100) end
  862. char.HumanoidRootPart.Anchored = false
  863. wait(.5)
  864. fireclickdetector(questPart.ClickDetector)
  865. wait(.5)
  866. doingQuest = false
  867. end
  868. else
  869. if noclip == false then
  870. collideParts()
  871. elseif baseplatecollideOn == false then
  872. baseplateCollideParts()
  873. end
  874. end
  875. end
  876.  
  877. local function isQuestAvailable()
  878. if not LocalPlayer.PlayerGui:FindFirstChild("Quest") and autoQuest then
  879. return true
  880. end
  881. return false
  882. end
  883.  
  884. spawn(function()
  885. while wait() do
  886. if farm then
  887. if autoQuest and not doingQuest then
  888. while isTweening == true do wait() end
  889. repeat doQuest() until isQuestAvailable() == false
  890. end
  891. LocalPlayer.DevCameraOcclusionMode = 1
  892. if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") then
  893. local char = LocalPlayer.Character
  894. --char.Client.Events.LightAttack:FireServer("SecretCode")
  895. local mob = findNearestMob(mobName)
  896. if mob then
  897. local dist = (char.HumanoidRootPart.Position-mob.Position).Magnitude
  898. if dist > 10 then
  899. repeat
  900. if dist > 100 then
  901. char.HumanoidRootPart.Anchored = true
  902. if farm then tweenplayer(char.HumanoidRootPart.CFrame+Vector3.new(0,80,0),tweenspeed) end
  903. char.HumanoidRootPart.Anchored = false
  904. if farm then tweenplayer(mob.CFrame+Vector3.new(0,80,0),tweenspeed) end
  905. char.HumanoidRootPart.Anchored = true
  906. if farm then tweenplayer(mob.CFrame+Vector3.new(0,3,0),100) end
  907. char.HumanoidRootPart.Anchored = false
  908. else
  909. tweenplayer(mob.CFrame+Vector3.new(0,3,0),tweenspeed)
  910. end
  911. until (char.HumanoidRootPart.Position-mob.Position).Magnitude <= 10 or checkValid(mob) or not farm
  912. end
  913. local hrp = LocalPlayer.Character.HumanoidRootPart
  914. local distanceFrom = CFrame.new(0,0,math.random(6,6.2))
  915. local angle = CFrame.Angles(0, math.rad(90), 0)
  916. spawn(function()
  917. repeat tweenplayer(CFrame.new((mob.CFrame*angle*distanceFrom).Position, char.HumanoidRootPart.Position + (mob.Position-char.HumanoidRootPart.Position).Unit),math.huge) until checkValid(mob) or not farm or isQuestAvailable()
  918. end)
  919. end
  920. end
  921. elseif autoQuest and not doingQuest then
  922. doQuest()
  923. end
  924. end
  925. end)
  926.  
  927. spawn(function()
  928. while wait() do
  929. if autoAttack or farm then
  930. if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") then
  931. local char = LocalPlayer.Character
  932. char.Client.Events.LightAttack:FireServer("SecretCode")
  933. end
  934. end
  935. local cheese
  936. if antiafk then
  937. local VirtualUser=game:GetService('VirtualUser')
  938. cheese = game:service('Players').LocalPlayer.Idled:Connect(function()
  939. VirtualUser:CaptureController()
  940. VirtualUser:ClickButton2(Vector2.new())
  941. end)
  942. else
  943. cheese = nil
  944. end
  945. end
  946. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement