Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --V2.1, check v3rm thread to see if this is updated: https://v3rmillion.net/showthread.php?tid=1114065
- repeat wait() until game:GetService("Players").LocalPlayer.Character
- local tweenspeed = _G.tweenspeed or 120
- local mobName = "Wolf"
- local questName = "Dangerous Wolves"
- -- For Non-Synapse Users (credits to egg salad)
- if not pcall(function() return syn.protect_gui end) then
- syn = {}
- syn.protect_gui = function(egg)
- egg.Parent = game.CoreGui
- end
- end
- local collideOn = true
- local parts = {}
- local function collideParts()
- if noclip and collideOn then
- collideOn = false
- for i,v in pairs(workspace:GetDescendants()) do
- if v.Name ~= "Baseplate" and v:IsA("BasePart") and v.CanCollide == true then
- table.insert(parts, v)
- v.CanCollide = false
- end
- end
- workspace.DescendantAdded:Connect(function(des)
- if noclip and des:IsA("BasePart") and des.CanCollide == true then
- des.CanCollide = false
- table.insert(parts, v)
- end
- end)
- elseif not collideOn then
- collideOn = true
- for i,v in ipairs(parts) do
- pcall(function()
- v.CanCollide = true
- end)
- end
- parts = {}
- end
- end
- local baseplatecollideOn = true
- local baseplateparts = {}
- local function baseplateCollideParts()
- if (farm or autoQuest) and baseplatecollideOn then
- baseplatecollideOn = false
- for i,v in pairs(workspace:GetDescendants()) do
- if v.Name == "Baseplate" and v:IsA("BasePart") and v.CanCollide == true then
- table.insert(baseplateparts, v)
- v.CanCollide = false
- end
- end
- elseif not autoquest and not farm and not baseplatecollideOn then
- baseplatecollideOn = true
- for i,v in ipairs(baseplateparts) do
- pcall(function()
- v.CanCollide = true
- end)
- end
- baseplateparts = {}
- end
- end
- iyflyspeed = 1
- local Players = game:GetService("Players")
- local LP = Players.LocalPlayer
- local LocalPlayer = Players.LocalPlayer
- local Mouse = Players.LocalPlayer:GetMouse()
- local CONTROL = {F = 0, B = 0, L = 0, R = 0}
- local lCONTROL = {F = 0, B = 0, L = 0, R = 0}
- local isFlying = false
- function sFLY() -- from rocky2u cmdscript
- repeat wait() until LP and LP.Character and LP.Character:FindFirstChild('HumanoidRootPart') and LP.Character:FindFirstChild('Humanoid')
- game.Players.LocalPlayer.Character.HumanoidRootPart.Anchored = true
- repeat wait() until Mouse
- local T = game.Players.LocalPlayer.Character.HumanoidRootPart
- CONTROL = {F = 0, B = 0, L = 0, R = 0}
- lCONTROL = {F = 0, B = 0, L = 0, R = 0}
- local SPEED = 0
- local function FLY()
- FLYING = true
- for i,v in pairs(getconnections(T.ChildAdded)) do
- v:Disable()
- end
- for i,v in pairs(getconnections(T.DescendantAdded)) do
- v:Disable()
- end
- for i,v in pairs(getconnections(T.Parent.DescendantAdded)) do
- v:Disable()
- end
- local BG = Instance.new('BodyGyro', T)
- local BV = Instance.new('BodyVelocity', T)
- BG.P = 9e4
- BG.maxTorque = Vector3.new(9e9, 9e9, 9e9)
- BG.cframe = T.CFrame
- BV.velocity = Vector3.new(0, 0.1, 0)
- BV.maxForce = Vector3.new(9e9, 9e9, 9e9)
- spawn(function()
- repeat wait()
- if CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0 then
- SPEED = 50
- elseif not (CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0) and SPEED ~= 0 then
- SPEED = 0
- end
- if (CONTROL.L + CONTROL.R) ~= 0 or (CONTROL.F + CONTROL.B) ~= 0 then
- 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
- lCONTROL = {F = CONTROL.F, B = CONTROL.B, L = CONTROL.L, R = CONTROL.R}
- elseif (CONTROL.L + CONTROL.R) == 0 and (CONTROL.F + CONTROL.B) == 0 and SPEED ~= 0 then
- 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
- else
- BV.velocity = Vector3.new(0, 0.1, 0)
- end
- BG.cframe = workspace.CurrentCamera.CoordinateFrame
- until not FLYING
- CONTROL = {F = 0, B = 0, L = 0, R = 0}
- lCONTROL = {F = 0, B = 0, L = 0, R = 0}
- SPEED = 0
- BG:destroy()
- BV:destroy()
- end)
- end
- Mouse.KeyDown:connect(function(KEY)
- if KEY:lower() == 'w' then
- CONTROL.F = iyflyspeed
- elseif KEY:lower() == 's' then
- CONTROL.B = -iyflyspeed
- elseif KEY:lower() == 'a' then
- CONTROL.L = -iyflyspeed
- elseif KEY:lower() == 'd' then
- CONTROL.R = iyflyspeed
- end
- end)
- Mouse.KeyUp:connect(function(KEY)
- if KEY:lower() == 'w' then
- CONTROL.F = 0
- elseif KEY:lower() == 's' then
- CONTROL.B = 0
- elseif KEY:lower() == 'a' then
- CONTROL.L = 0
- elseif KEY:lower() == 'd' then
- CONTROL.R = 0
- end
- end)
- if WHeld then
- CONTROL.F = iyflyspeed
- end
- if SHeld then
- CONTROL.B = -iyflyspeed
- end
- FLY()
- game.Players.LocalPlayer.Character.HumanoidRootPart.Anchored = false
- end
- function NOFLY()
- isFlying = false
- FLYING = false
- end
- function startflying()
- isFlying = true
- sFLY()
- local Float = Instance.new('Part', game.Players.LocalPlayer.Character)
- Float.Name = 'Float'
- Float.Transparency = 1
- Float.Size = Vector3.new(6,1,6)
- Float.Anchored = true
- end
- local walkspeed = 16
- local jumppower = 50
- local lib = loadstring(game:HttpGet('https://raw.githubusercontent.com/obeseinsect/ok/main/ok.lua', true))()
- local window = lib:CreateWindow('PPHAX v2.1 - Era Of Althea')
- window:AddLabel({text = "FireTzron @ V3rmillion - Remake"})
- window:AddToggle({text = 'Auto Quest', state = autoQuest, callback = function(v) autoQuest = v; collideParts(); baseplateCollideParts() end})
- 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})
- window:AddToggle({text = 'Auto Farm', state = farm, callback = function(v) farm = v; collideParts(); baseplateCollideParts() end})
- 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})
- window:AddToggle({text = 'Auto Attack', state = autoAttack, callback = function(v) autoAttack = v end})
- window:AddToggle({text = 'Anti Afk', state = antiafk, callback = function(v) antiafk = v end})
- local window2 = lib:CreateWindow('Movement')
- window2:AddToggle({text = 'NoClip', state = noclip, callback = function(v)
- noclip = v
- collideParts()
- end})
- window2:AddToggle({text = 'No Jump Cooldown', state = nojumpCooldown, callback = function(v)
- nojumpCooldown = v
- repeat wait() until LocalPlayer.Character and LocalPlayer.Character.JumpCooldown
- LocalPlayer.Character.JumpCooldown.Disabled = nojumpCooldown
- end})
- window2:AddBind({text = 'Fly', hold = false, key = "H", callback = function()
- if not isFlying then
- startflying()
- elseif isFlying then
- NOFLY()
- if game.Players.LocalPlayer.Character then
- if game.Players.LocalPlayer.Character:FindFirstChild("Float") then
- game.Players.LocalPlayer.Character:FindFirstChild("Float"):Destroy()
- end
- end
- local AnimationTracks = game.Players.LocalPlayer.Character.Humanoid:GetPlayingAnimationTracks()
- for i, track in pairs (AnimationTracks) do
- track:Stop()
- end
- end
- end})
- window2:AddSlider({text = 'FlySpeed', flag = "slider1", value = 1, min = .45, max = 10, callback = function(v) iyflyspeed = v end})
- window2:AddSlider({text = 'WalkSpeed', flag = "slider1", value = 16, min = 16, max = 200, callback = function(v) walkspeed = v end})
- window2:AddSlider({text = 'JumpPower', flag = "slider1", value = 50, min = 50, max = 100, callback = function(v) jumppower = v end})
- local window3 = lib:CreateWindow('Visuals')
- window3:AddToggle({text = 'Player Chams', state = playerchams, callback = function(v)
- playerchams = v
- for i,v in pairs(game:GetService("CoreGui"):WaitForChild("PLAYERCHAMS").Folder:GetChildren()) do
- v.Visible = playerchams
- end
- end})
- window3:AddToggle({text = 'Player ESP', state = playeresp, callback = function(v)
- playeresp = v
- for _,plr in pairs(game:GetService("Players"):GetPlayers()) do
- local plrchar = plr.Character
- if plr ~= LP and plrchar and plrchar.Head then
- plrchar.Head.ESP.Enabled = playeresp
- if v then
- plrchar:WaitForChild('Humanoid').DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
- else
- plrchar:WaitForChild('Humanoid').DisplayDistanceType = Enum.HumanoidDisplayDistanceType.Viewer
- end
- end
- end
- end})
- window3:AddToggle({text = 'Player Health ESP', state = playerhealthesp, callback = function(v)
- playerhealthesp = v
- for _,plr in pairs(game:GetService("Players"):GetPlayers()) do
- local plrchar = plr.Character
- if plr ~= LP and plrchar and plrchar.HumanoidRootPart then
- plrchar.HumanoidRootPart.HEALTHESP.Enabled = playerhealthesp
- end
- end
- end})
- window3:AddToggle({text = 'Mob ESP', state = mobesp, callback = function(v)
- mobesp = v
- for _,mob in pairs(workspace.NPCS:GetChildren()) do
- for _, hitbox in pairs(mob:GetChildren()) do
- if hitbox.Name == "Hitbox" then
- hitbox.ESP.Enabled = mobesp
- end
- end
- end
- end})
- window3:AddToggle({text = 'Mob Health ESP', state = mobhealthesp, callback = function(v)
- mobhealthesp = v
- for _,mob in pairs(workspace.NPCS:GetChildren()) do
- for _, hitbox in pairs(mob:GetChildren()) do
- if hitbox.Name == "Hitbox" then
- hitbox.HEALTHESP.Enabled = mobhealthesp
- end
- end
- end
- end})
- lib:Init()
- local plr = game:GetService("Players").LocalPlayer
- local char = plr.Character
- local GameMt = getrawmetatable(game)
- local OldNameCall = GameMt.__namecall
- setreadonly(GameMt, false)
- local index = GameMt.__index
- local newindex = GameMt.__newindex
- local spoofWS = plr.Character.Humanoid.WalkSpeed
- local spoofJP = plr.Character.Humanoid.JumpPower
- GameMt.__index = newcclosure(function(t,i)
- -- index = "WalkSpeed"
- -- table = "Humanoid"
- if not checkcaller() then
- if tostring(i) == "WalkSpeed" then
- return spoofWS
- elseif tostring(i) == "JumpPower" then
- return spoofJP
- elseif tostring(i) == "CanCollide" then
- return true
- elseif tostring(i) == "BodyGyro" then
- print("ahhh goo stoopid")
- return false
- elseif tostring(i) == "BodyVelocity" then
- print("ahhh goo stoopidddd")
- return false
- end
- end
- return index(t,i)
- end)
- local a = true
- GameMt.__namecall = newcclosure(function(Self, ...)
- local Args = {...}
- local NamecallMethod = getnamecallmethod()
- if not checkcaller() then
- if (tostring(Self) == "UpdateLocation" or tostring(Self) == "ServerCheck") and NamecallMethod == "FireServer" and Args[1] == nil then
- print(tostring(Self), NamecallMethod)
- --return wait(9e9)
- end
- if (NamecallMethod == "Kick" or NamecallMethod == "kick") then
- return wait(9e9)
- end
- if (NamecallMethod == "FindFirstChild" or NamecallMethod == "WaitForChild" or NamecallMethod == "FindFirstChildWhichIsA" or NamecallMethod == "FindFirstColdOfClass") and Args[1] == "BodyVelocity" then
- return
- end
- end
- return OldNameCall(Self, ...)
- end)
- local OldIndex = GameMt.__index
- GameMt.__index = newcclosure(function(Self, Key)
- if not checkcaller() and Key == "BillboardGui" then
- return nil
- end
- return OldIndex(Self, Key)
- end)
- setreadonly(GameMt, true)
- local function espMob(mob)
- for i,v in pairs(getconnections(mob.Hitbox.ChildAdded)) do
- v:Disable()
- end
- local billgui = Instance.new('BillboardGui', mob.Hitbox)
- local textlab = Instance.new('TextLabel', billgui)
- billgui.Name = "ESP"
- billgui.AlwaysOnTop = true
- billgui.ExtentsOffset = Vector3.new(0, 3, 0)
- billgui.Size = UDim2.new(10, 0, 10, 0)
- textlab.Name = 'Mob'
- textlab.BackgroundColor3 = Color3.new(255, 255, 255)
- textlab.BackgroundTransparency = 1
- textlab.BorderSizePixel = 0
- textlab.Position = UDim2.new(0, 0, 0, 0)
- textlab.Size = UDim2.new(1, 0, 1, 0)
- textlab.Visible = true
- textlab.ZIndex = 10
- textlab.Font = 'SciFi'
- textlab.FontSize = 'Size14'
- textlab.Text = mob.Name
- textlab.TextTransparency = 0
- textlab.TextStrokeTransparency = 1
- textlab.TextColor3 = Color3.fromRGB(42, 163, 255)
- if not mobesp then
- billgui.Enabled = false
- end
- end
- local mobMaxHealth = {}
- for _,mob in pairs(workspace.NPCS:GetChildren()) do
- for i,v in pairs(mob:GetChildren()) do
- if v:FindFirstChild("Hitbox") == nil then
- mobMaxHealth[mob.Name] = {maxhealth = mob.Health.Value}
- end
- end
- end
- mobMaxHealth["Wolf"] = {maxhealth = 100} --idk why it defaults to 15 if i dont do this
- local function createmobHealthbar(mob)
- --print("healthing " .. player.Name)
- for i,v in pairs(getconnections(mob.Hitbox.ChildAdded)) do
- v:Disable()
- end
- local billgui = Instance.new('BillboardGui', mob.Hitbox)
- local textlab = Instance.new('TextLabel', billgui)
- billgui.Name = "HEALTHESP"
- billgui.AlwaysOnTop = true
- billgui.ExtentsOffset = Vector3.new(0, 2, 0)
- billgui.Size = UDim2.new(10, 0, 10, 0)
- billgui.MaxDistance = 200
- textlab.Name = 'health'
- textlab.BackgroundColor3 = Color3.new(255, 255, 255)
- textlab.BackgroundTransparency = 1
- textlab.BorderSizePixel = 0
- textlab.Position = UDim2.new(0, 0, 0, 0)
- textlab.Size = UDim2.new(1, 0, 1, 0)
- textlab.Visible = true
- textlab.ZIndex = 10
- textlab.Font = 'SciFi'
- textlab.FontSize = 'Size14'
- textlab.Text = mob.Health.Value .. "/" .. mobMaxHealth[mob.Name].maxhealth
- textlab.TextTransparency = 0
- textlab.TextStrokeTransparency = 1
- textlab.TextColor3 = Color3.fromRGB(167, 17, 17)
- --player.Character:WaitForChild('Humanoid').DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
- if not mobhealthesp then
- billgui.Enabled = false
- end
- mob.Health:GetPropertyChangedSignal("Value"):Connect(function() --//Triggers when any Property changed
- if mob and mob.Health then
- textlab.Text = mob.Health.Value .. "/" .. mobMaxHealth[mob.Name].maxhealth
- end
- end)
- end
- for _,mob in pairs(workspace.NPCS:GetChildren()) do
- if mob and mob:FindFirstChild("Hitbox") then
- espMob(mob)
- createmobHealthbar(mob)
- end
- end
- workspace.NPCS.ChildAdded:Connect(function(mob)
- if mob then
- mob:WaitForChild("Hitbox")
- mob:WaitForChild("Health")
- espMob(mob)
- createmobHealthbar(mob)
- end
- end)
- local function espPlayer(player)
- for i,v in pairs(getconnections(player.Character.Head.ChildAdded)) do
- v:Disable()
- end
- local billgui = Instance.new('BillboardGui', player.Character.Head)
- local textlab = Instance.new('TextLabel', billgui)
- billgui.Name = "ESP"
- billgui.AlwaysOnTop = true
- billgui.ExtentsOffset = Vector3.new(0, 3, 0)
- billgui.Size = UDim2.new(10, 0, 10, 0)
- textlab.Name = 'Player'
- textlab.BackgroundColor3 = Color3.new(255, 255, 255)
- textlab.BackgroundTransparency = 1
- textlab.BorderSizePixel = 0
- textlab.Position = UDim2.new(0, 0, 0, 0)
- textlab.Size = UDim2.new(1, 0, 1, 0)
- textlab.Visible = true
- textlab.ZIndex = 10
- textlab.Font = 'SciFi'
- textlab.FontSize = 'Size14'
- textlab.Text = player.Name
- textlab.TextTransparency = 0
- textlab.TextStrokeTransparency = 1
- textlab.TextColor3 = Color3.fromRGB(0,255,127)
- --player.Character:WaitForChild('Humanoid').DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
- if not playeresp then
- billgui.Enabled = false
- end
- end
- local function createHealthbar(player)
- --print("healthing " .. player.Name)
- for i,v in pairs(getconnections(player.Character.Head.ChildAdded)) do
- v:Disable()
- end
- local hrp = player.Character:WaitForChild("HumanoidRootPart")
- local billgui = Instance.new('BillboardGui', hrp)
- local textlab = Instance.new('TextLabel', billgui)
- billgui.Name = "HEALTHESP"
- billgui.AlwaysOnTop = true
- billgui.ExtentsOffset = Vector3.new(0, 2, 0)
- billgui.Size = UDim2.new(10, 0, 10, 0)
- billgui.MaxDistance = 200
- textlab.Name = 'health'
- textlab.BackgroundColor3 = Color3.new(255, 255, 255)
- textlab.BackgroundTransparency = 1
- textlab.BorderSizePixel = 0
- textlab.Position = UDim2.new(0, 0, 0, 0)
- textlab.Size = UDim2.new(1, 0, 1, 0)
- textlab.Visible = true
- textlab.ZIndex = 10
- textlab.Font = 'SciFi'
- textlab.FontSize = 'Size14'
- textlab.Text = player.Character.Health.Value
- textlab.TextTransparency = 0
- textlab.TextStrokeTransparency = 1
- textlab.TextColor3 = Color3.fromRGB(0,0,0)
- --player.Character:WaitForChild('Humanoid').DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
- if not playerhealthesp then
- billgui.Enabled = false
- end
- player.Character.Health:GetPropertyChangedSignal("Value"):Connect(function() --//Triggers when any Property changed
- if hrp and hrp.Parent and hrp.Parent.Health then
- textlab.Text = player.Character.Health.Value
- end
- end)
- end
- for _,player in pairs(game:GetService('Players'):GetPlayers()) do
- if player ~= Players.LocalPlayer then
- local char = player.Character or player.CharacterAdded:Wait()
- if char then
- player.Character:WaitForChild('Head')
- player.CharacterAdded:Connect(function(character)
- player.Character:WaitForChild('Head')
- espPlayer(player)
- createHealthbar(player)
- end)
- espPlayer(player)
- createHealthbar(player)
- end
- end
- end
- game:GetService('Players').PlayerAdded:Connect(function(player)
- if player then
- --print(player, "has joined!")
- local char = player.Character or player.CharacterAdded:Wait()
- if char then
- player.Character:WaitForChild('Head')
- --print(char, "'s character has been found!")
- player.CharacterAdded:Connect(function(character)
- player.Character:WaitForChild('Head')
- player.Character:WaitForChild('Humanoid')
- espPlayer(player)
- createHealthbar(player)
- end)
- espPlayer(player)
- createHealthbar(player)
- end
- end
- end)
- local ScreenGui = Instance.new("ScreenGui",game:GetService('CoreGui'))
- ScreenGui.Name = "PLAYERCHAMS"
- local ESPLocation = Instance.new("Folder",ScreenGui)
- local targetPlayer = ""
- local Targets = {
- "HumanoidRootPart",
- --[["LeftLowerArm",
- "LeftUpperArm",
- "LowerTorso",
- "RightLowerArm",
- "RightUpperArm",
- "RightUpperLeg",
- "LeftLowerLeg",
- "LeftUpperLeg",
- "RightLowerLeg",
- "UpperTorso"--]]
- }
- function espPart(part,player)
- local esp = Instance.new("BoxHandleAdornment",ESPLocation)
- esp.Adornee = part
- esp.AlwaysOnTop = true
- esp.ZIndex = 1
- esp.Transparency = 0.7
- esp.Size = part.Size / 1.1
- if part.Name == "LeftHand" or part.Name == "RightHand" then
- esp.Size = part.Size - Vector3.new(0,1,0)
- end
- esp.Color3 = Color3.fromRGB(255,0,0)--player.TeamColor.Color
- if player.Name == targetPlayer then
- esp.Size = part.Size + Vector3.new(.1, .1, .1)
- esp.Color3 = Color3.fromRGB(255,255,0)
- end
- esp.MouseEnter:Connect(function()
- if player.Team ~= game:GetService('Players').LocalPlayer.Team then
- local currentFrame = esp
- end
- end)
- player.CharacterRemoving:Connect(function()
- esp:Destroy()
- end)
- if player.Team then
- player.Team.PlayerRemoved:Connect(function(RemovedPlayer)
- if RemovedPlayer ~= player and RemovedPlayer ~= game:GetService('Players').LocalPlayer then
- return
- else
- esp.Color3 = player.TeamColor.Color
- end
- end)
- end
- return esp
- end
- function espPlayer(player)
- if player.Character ~= nil then
- for _,part in pairs(player.Character:GetChildren())do
- 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
- --print(part)
- local esp = espPart(part,player)
- if not playerchams then
- esp.Visible = false
- end
- end
- end
- end
- end
- function ESP()
- ESPLocation:ClearAllChildren()
- for _,player in pairs(game:GetService('Players'):GetPlayers())do
- if player ~= game:GetService('Players').LocalPlayer then
- espPlayer(player)
- end
- end
- end
- ESP()
- for i,v in pairs(ESPLocation:GetChildren()) do
- v.Visible = false
- end
- local function WaitUntilCharacterLoaded(Char)
- for _,Part in pairs(Targets)do
- Char:WaitForChild(Part)
- end
- end
- game:GetService('Players').PlayerAdded:Connect(function(Player)
- Player.CharacterAdded:Connect(function(Char)
- WaitUntilCharacterLoaded(Char)
- espPlayer(Player)
- end)
- end)
- for _,Player in pairs(game:GetService('Players'):GetPlayers())do
- Player.CharacterAdded:Connect(function(Char)
- WaitUntilCharacterLoaded(Char)
- espPlayer(Player)
- end)
- end
- char.Humanoid.WalkSpeed = walkspeed
- char.Humanoid.JumpPower = jumppower
- char.Humanoid.Changed:Connect(function()
- char.Humanoid.WalkSpeed = walkspeed
- char.Humanoid.JumpPower = jumppower
- end)
- plr.CharacterAdded:Connect(function(char)
- if nojumpCooldown then
- char.JumpCooldown.Disabled = true
- end
- char.Humanoid.WalkSpeed = walkspeed
- char.Humanoid.JumpPower = jumppower
- char.Humanoid.Changed:Connect(function()
- char.Humanoid.WalkSpeed = walkspeed
- char.Humanoid.JumpPower = jumppower
- end)
- end)
- local isTweening = false;
- char.Humanoid.StateChanged:Connect(function(oldState, newState)
- if (isFlying or isTweening) and newState == Enum.HumanoidStateType.Freefall then
- char.Humanoid:ChangeState(Enum.HumanoidStateType.Running)
- end
- end)
- plr.CharacterAdded:Connect(function(char)
- char.Humanoid.StateChanged:Connect(function(oldState, newState)
- if (isFlying or isTweening) and newState == Enum.HumanoidStateType.Freefall then
- char.Humanoid:ChangeState(Enum.HumanoidStateType.Running)
- end
- end)
- end)
- local WHeld = false
- local SHeld = false
- local AHeld = false
- local DHeld = false
- Mouse.KeyDown:Connect(function(key)
- if key == "w" then
- WHeld = true
- end
- end)
- Mouse.KeyUp:Connect(function(key)
- if key == "w" then
- WHeld = false
- end
- end)
- Mouse.KeyDown:Connect(function(key)
- if key == "s" then
- SHeld = true
- end
- end)
- Mouse.KeyUp:Connect(function(key)
- if key == "s" then
- SHeld = false
- end
- end)
- Mouse.KeyDown:Connect(function(key)
- if key == "a" then
- AHeld = true
- end
- end)
- Mouse.KeyUp:Connect(function(key)
- if key == "a" then
- AHeld = false
- end
- end)
- Mouse.KeyDown:Connect(function(key)
- if key == "d" then
- DHeld = true
- end
- end)
- Mouse.KeyUp:Connect(function(key)
- if key == "d" then
- DHeld = false
- end
- end)
- local UIS = game:GetService("UserInputService")
- UIS.InputBegan:Connect(function(Input, GameProcessedEvent)
- if not GameProcessedEvent then
- if Input.KeyCode == Enum.KeyCode.LeftShift then
- walkspeed = walkspeed + 16
- iyflyspeed = iyflyspeed + .3
- if WHeld then
- CONTROL.F = iyflyspeed
- elseif SHeld then
- CONTROL.B = -iyflyspeed
- elseif AHeld then
- CONTROL.L = -iyflyspeed
- elseif DHeld then
- CONTROL.R = iyflyspeed
- end
- end
- end
- end)
- UIS.InputEnded:Connect(function(Input, GameProcessedEvent)
- if Input.KeyCode == Enum.KeyCode.LeftShift then
- walkspeed = walkspeed - 16
- iyflyspeed = iyflyspeed - .3
- if WHeld then
- CONTROL.F = iyflyspeed
- elseif SHeld then
- CONTROL.B = -iyflyspeed
- elseif AHeld then
- CONTROL.L = -iyflyspeed
- elseif DHeld then
- CONTROL.R = iyflyspeed
- end
- end
- end)
- local Players = game:GetService("Players")
- local LocalPlayer = Players.LocalPlayer
- local function findNearestMob(mobname)
- local Character = LocalPlayer.Character
- local HumanoidRootPart = Character:FindFirstChild("HumanoidRootPart")
- if not (Character or HumanoidRootPart) then return end
- local TargetDistance = math.huge
- local Target
- for i,v in pairs(workspace.NPCS:GetChildren()) do
- if v.Name == mobname then
- if v:FindFirstChild("Hitbox") then
- local mag = (HumanoidRootPart.Position - v.Hitbox.Position).Magnitude
- if mag < TargetDistance then
- TargetDistance = mag
- Target = v.Hitbox
- end
- end
- end
- end
- return Target
- end
- local function tweenplayer(cframe,speed)
- repeat wait() until LocalPlayer.Character;
- isTweening = true
- and LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
- and LocalPlayer.Character:FindFirstChild("Humanoid")
- and LocalPlayer.Character:FindFirstChild("Humanoid").Health > 0
- local TweenInfo = TweenInfo.new(((cframe.Position - LocalPlayer.Character.HumanoidRootPart.Position).Magnitude)/speed, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 0, false)
- local Objective = {CFrame = cframe}
- local TweenPlayer = game:GetService("TweenService"):Create(LocalPlayer.Character.HumanoidRootPart, TweenInfo, Objective)
- --game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Anchored = true
- TweenPlayer:Play()
- TweenPlayer.Completed:Wait(); --wait(.1);
- --game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Anchored = false
- isTweening = false;
- end
- local function checkValid(mob)
- local char = LocalPlayer.Character
- local HumanoidRootPart = char:FindFirstChild("HumanoidRootPart")
- if not (char or HumanoidRootPart) then return true end
- return not mob or not mob.Parent or mob.Parent.Health.Value <= 0 or char.Humanoid.Health <= 0
- end
- local doingQuest = false
- local function findNearestQuest()
- local Character = LocalPlayer.Character
- local HumanoidRootPart = Character:FindFirstChild("HumanoidRootPart")
- if not (Character or HumanoidRootPart) then return end
- local TargetDistance = math.huge
- local Target
- for i,v in pairs(workspace:GetDescendants()) do
- if v.Name == "Papers" then
- for a,b in pairs(v:GetDescendants()) do
- if b.Name == "QuestName" and b.Text == questName then
- local part = b.Parent.Parent.Parent
- local mag = (HumanoidRootPart.Position - part.Position).Magnitude
- if mag < TargetDistance then
- TargetDistance = mag
- Target = part
- end
- end
- end
- end
- end
- return Target
- end
- local function doQuest()
- if not LocalPlayer.PlayerGui:FindFirstChild("Quest") and LocalPlayer.Character then
- local questPart = findNearestQuest()
- if questPart and not doingQuest then
- doingQuest = true
- char.HumanoidRootPart.Anchored = true
- if autoQuest then tweenplayer(LocalPlayer.Character.HumanoidRootPart.CFrame+Vector3.new(0,80,0),tweenspeed) end
- char.HumanoidRootPart.Anchored = false
- if autoQuest then tweenplayer(CFrame.new(questPart.Position+Vector3.new(0,80,0)),tweenspeed) end
- char.HumanoidRootPart.Anchored = true
- if autoQuest then tweenplayer(CFrame.new(questPart.Position+Vector3.new(-3,0,0)),100) end
- char.HumanoidRootPart.Anchored = false
- wait(.5)
- fireclickdetector(questPart.ClickDetector)
- wait(.5)
- doingQuest = false
- end
- else
- if noclip == false then
- collideParts()
- elseif baseplatecollideOn == false then
- baseplateCollideParts()
- end
- end
- end
- local function isQuestAvailable()
- if not LocalPlayer.PlayerGui:FindFirstChild("Quest") and autoQuest then
- return true
- end
- return false
- end
- spawn(function()
- while wait() do
- if farm then
- if autoQuest and not doingQuest then
- while isTweening == true do wait() end
- repeat doQuest() until isQuestAvailable() == false
- end
- LocalPlayer.DevCameraOcclusionMode = 1
- if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") then
- local char = LocalPlayer.Character
- --char.Client.Events.LightAttack:FireServer("SecretCode")
- local mob = findNearestMob(mobName)
- if mob then
- local dist = (char.HumanoidRootPart.Position-mob.Position).Magnitude
- if dist > 10 then
- repeat
- if dist > 100 then
- char.HumanoidRootPart.Anchored = true
- if farm then tweenplayer(char.HumanoidRootPart.CFrame+Vector3.new(0,80,0),tweenspeed) end
- char.HumanoidRootPart.Anchored = false
- if farm then tweenplayer(mob.CFrame+Vector3.new(0,80,0),tweenspeed) end
- char.HumanoidRootPart.Anchored = true
- if farm then tweenplayer(mob.CFrame+Vector3.new(0,3,0),100) end
- char.HumanoidRootPart.Anchored = false
- else
- tweenplayer(mob.CFrame+Vector3.new(0,3,0),tweenspeed)
- end
- until (char.HumanoidRootPart.Position-mob.Position).Magnitude <= 10 or checkValid(mob) or not farm
- end
- local hrp = LocalPlayer.Character.HumanoidRootPart
- local distanceFrom = CFrame.new(0,0,math.random(6,6.2))
- local angle = CFrame.Angles(0, math.rad(90), 0)
- spawn(function()
- 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()
- end)
- end
- end
- elseif autoQuest and not doingQuest then
- doQuest()
- end
- end
- end)
- spawn(function()
- while wait() do
- if autoAttack or farm then
- if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") then
- local char = LocalPlayer.Character
- char.Client.Events.LightAttack:FireServer("SecretCode")
- end
- end
- local cheese
- if antiafk then
- local VirtualUser=game:GetService('VirtualUser')
- cheese = game:service('Players').LocalPlayer.Idled:Connect(function()
- VirtualUser:CaptureController()
- VirtualUser:ClickButton2(Vector2.new())
- end)
- else
- cheese = nil
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement