├── README.md └── main.lua /README.md: -------------------------------------------------------------------------------- 1 | # Era-of-Althea-Hack 2 | 3 | A simple hack for Era Of Althea 4 | -------------------------------------------------------------------------------- /main.lua: -------------------------------------------------------------------------------- 1 | repeat wait() until game:GetService("Players").LocalPlayer.Character 2 | 3 | local scr = workspace[player.Name]:FindFirstChildOfClass("AntiE2") 4 | 5 | if Tool then 6 | Tool:Destroy() 7 | end 8 | 9 | --// Codes 10 | 11 | spawn(function() 12 | local codes = {"2MVISITS!", "DetestThrewItBackOnMe", "1MVISITS!", "15KLIKES!", "SHUTDOWNADOPTME!", "MaineEOA", "ShutdownForFixes!", "AltheaHype!", "ShutdownForFixesA!", "ShutdownForFixes2!", "4MILVISITS!", "25LIKES!", "MyApologies!", "NewUpdate??"} 13 | local Event = game:GetService("ReplicatedStorage").Remotes.RedeemCode 14 | for i,v in pairs(codes) do 15 | Event:InvokeServer(v) 16 | end 17 | end) 18 | 19 | local tweenspeed = _G.tweenspeed or 150 20 | local mobName = "Wolf" 21 | local questName = "Dangerous Wolves" 22 | 23 | -- For Non-Synapse Users (credits to egg salad) 24 | if not pcall(function() return syn.protect_gui end) then 25 | syn = {} 26 | syn.protect_gui = function(egg) 27 | egg.Parent = game.CoreGui 28 | end 29 | end 30 | 31 | local beneathMapPart = Instance.new("Part", workspace) 32 | beneathMapPart.Position = Vector3.new(594,-280,2375) 33 | beneathMapPart.Size = Vector3.new(math.huge,2,math.huge) 34 | beneathMapPart.Transparency = .5 35 | beneathMapPart.Anchored = true 36 | 37 | iyflyspeed = 1 38 | 39 | local Players = game:GetService("Players") 40 | local LP = Players.LocalPlayer 41 | local LocalPlayer = Players.LocalPlayer 42 | local Mouse = Players.LocalPlayer:GetMouse() 43 | 44 | local CONTROL = {F = 0, B = 0, L = 0, R = 0} 45 | local lCONTROL = {F = 0, B = 0, L = 0, R = 0} 46 | 47 | local isFlying = false 48 | function sFLY() -- from rocky2u cmdscript 49 | repeat wait() until LP and LP.Character and LP.Character:FindFirstChild('HumanoidRootPart') and LP.Character:FindFirstChild('Humanoid') 50 | game.Players.LocalPlayer.Character.HumanoidRootPart.Anchored = true 51 | repeat wait() until Mouse 52 | local T = game.Players.LocalPlayer.Character.HumanoidRootPart 53 | CONTROL = {F = 0, B = 0, L = 0, R = 0} 54 | lCONTROL = {F = 0, B = 0, L = 0, R = 0} 55 | local SPEED = 0 56 | 57 | local function FLY() 58 | FLYING = true 59 | for i,v in pairs(getconnections(T.ChildAdded)) do 60 | v:Disable() 61 | end 62 | for i,v in pairs(getconnections(T.DescendantAdded)) do 63 | v:Disable() 64 | end 65 | for i,v in pairs(getconnections(T.Parent.DescendantAdded)) do 66 | v:Disable() 67 | end 68 | local BG = Instance.new('BodyGyro', T) 69 | local BV = Instance.new('BodyVelocity', T) 70 | BG.P = 9e4 71 | BG.maxTorque = Vector3.new(9e9, 9e9, 9e9) 72 | BG.cframe = T.CFrame 73 | BV.velocity = Vector3.new(0, 0.1, 0) 74 | BV.maxForce = Vector3.new(9e9, 9e9, 9e9) 75 | spawn(function() 76 | repeat wait() 77 | if CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0 then 78 | SPEED = 50 79 | elseif not (CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0) and SPEED ~= 0 then 80 | SPEED = 0 81 | end 82 | if (CONTROL.L + CONTROL.R) ~= 0 or (CONTROL.F + CONTROL.B) ~= 0 then 83 | 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 84 | lCONTROL = {F = CONTROL.F, B = CONTROL.B, L = CONTROL.L, R = CONTROL.R} 85 | elseif (CONTROL.L + CONTROL.R) == 0 and (CONTROL.F + CONTROL.B) == 0 and SPEED ~= 0 then 86 | 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 87 | else 88 | BV.velocity = Vector3.new(0, 0.1, 0) 89 | end 90 | BG.cframe = workspace.CurrentCamera.CoordinateFrame 91 | until not FLYING 92 | CONTROL = {F = 0, B = 0, L = 0, R = 0} 93 | lCONTROL = {F = 0, B = 0, L = 0, R = 0} 94 | SPEED = 0 95 | BG:destroy() 96 | BV:destroy() 97 | end) 98 | end 99 | Mouse.KeyDown:connect(function(KEY) 100 | if KEY:lower() == 'w' then 101 | CONTROL.F = iyflyspeed 102 | elseif KEY:lower() == 's' then 103 | CONTROL.B = -iyflyspeed 104 | elseif KEY:lower() == 'a' then 105 | CONTROL.L = -iyflyspeed 106 | elseif KEY:lower() == 'd' then 107 | CONTROL.R = iyflyspeed 108 | end 109 | end) 110 | Mouse.KeyUp:connect(function(KEY) 111 | if KEY:lower() == 'w' then 112 | CONTROL.F = 0 113 | elseif KEY:lower() == 's' then 114 | CONTROL.B = 0 115 | elseif KEY:lower() == 'a' then 116 | CONTROL.L = 0 117 | elseif KEY:lower() == 'd' then 118 | CONTROL.R = 0 119 | end 120 | end) 121 | if WHeld then 122 | CONTROL.F = iyflyspeed 123 | end 124 | if SHeld then 125 | CONTROL.B = -iyflyspeed 126 | end 127 | FLY() 128 | game.Players.LocalPlayer.Character.HumanoidRootPart.Anchored = false 129 | end 130 | 131 | function NOFLY() 132 | isFlying = false 133 | FLYING = false 134 | end 135 | 136 | function startflying() 137 | isFlying = true 138 | sFLY() 139 | local Float = Instance.new('Part', game.Players.LocalPlayer.Character) 140 | Float.Name = 'Float' 141 | Float.Transparency = 1 142 | Float.Size = Vector3.new(6,1,6) 143 | Float.Anchored = true 144 | end 145 | local mobDistance = 8 146 | local changingDistance = false 147 | local walkspeed = 16 148 | local jumppower = 50 149 | ------(Library UI) 150 | local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/alixjaffar/Roblox-UI-Library/main/main.lua", true))() 151 | ------- 152 | local window = lib:CreateWindow('Era of althea hack') 153 | window:AddLabel({text = "alixjaffar @ github"}) 154 | window:AddToggle({text = 'auto quest', state = autoQuest, callback = function(v) 155 | if not legitmode then 156 | autoQuest = v; 157 | end 158 | end}) 159 | window:AddList({text = 'questchooser', state = questName, values = {"Dangerous Wolves", "Dire Wolf", "Atreyu Labyrinth", "Rocky Attack", "Ronbaru Labyrinth", "Abu Madness", "Rocky Attack", "Insect Mayhem", "Vedalia Raid", "Vanhima Labyrinth"}, callback = function(v) questName = v end}) 160 | window:AddToggle({text = 'auto farm', state = farm, callback = function(v) 161 | if not legitmode then 162 | farm = v; 163 | end 164 | end}) 165 | window:AddList({text = 'mob', state = mobName, values = {"Wolf","Dire Wolf","Orc", "Golem", "Abu", "Stork", "G-Knight", "Vedalia", "Scorpion", "Conjured Skeleton", "Thonk, The Orc Lord", "Hleam Eyes", "Rog, The Bearded One"}, callback = function(v) mobName = v end}) 166 | window:AddList({text = 'distance option', state = distanceOption, values = {"Default Distances", "Custom Distance"}, callback = function(v) distanceOption = v end}) 167 | window:AddSlider({text = 'distance from mob', flag = "distancefrommob", value = 8, min = 0, max = 20, float = 0.1, callback = function(v) mobDistance = v; changingDistance = true; wait(); changingDistance = false end}) 168 | window:AddSlider({text = 'tween speed', flag = "tweenspeeder", value = 150, min = 10, max = 500, callback = function(v) tweenspeed = v end}) 169 | window:AddToggle({text = 'auto attack', state = autoAttack, callback = function(v) 170 | if not legitmode then 171 | autoAttack = v 172 | end 173 | end}) 174 | window:AddToggle({text = 'auto sword', state = autoSword, callback = function(v) 175 | if not legitmode then 176 | autoSword = v 177 | end 178 | end}) 179 | window:AddToggle({text = 'spam sword', state = spamSword, callback = function(v) 180 | if not legitmode then 181 | spamSword = v 182 | end 183 | end}) 184 | window:AddToggle({text = 'anti afk', state = antiafk, callback = function(v) antiafk = v end}) 185 | window:AddToggle({text = 'anti aggro', state = antiaggro, callback = function(v) 186 | if not legitmode then 187 | antiaggro = v 188 | end 189 | end}) 190 | window:AddToggle({text = 'legit mode', state = legitmode, callback = function(v) legitmode = v end}) 191 | 192 | local window2 = lib:CreateWindow('movement') 193 | window2:AddToggle({text = 'noclip', state = noclip, callback = function(v) 194 | if not legitmode then 195 | noclip = v 196 | end 197 | end}) 198 | window2:AddToggle({text = 'no jump cooldown', state = nojumpCooldown, callback = function(v) 199 | if not legitmode then 200 | nojumpCooldown = v 201 | repeat wait() until LocalPlayer.Character and LocalPlayer.Character.JumpCooldown 202 | LocalPlayer.Character.JumpCooldown.Disabled = nojumpCooldown 203 | end 204 | end}) 205 | window2:AddBind({text = 'fly', hold = false, key = "H", callback = function() 206 | if not legitmode then 207 | if not isFlying then 208 | startflying() 209 | elseif isFlying then 210 | NOFLY() 211 | if game.Players.LocalPlayer.Character then 212 | if game.Players.LocalPlayer.Character:FindFirstChild("Float") then 213 | game.Players.LocalPlayer.Character:FindFirstChild("Float"):Destroy() 214 | end 215 | end 216 | local AnimationTracks = game.Players.LocalPlayer.Character.Humanoid:GetPlayingAnimationTracks() 217 | for i, track in pairs (AnimationTracks) do 218 | track:Stop() 219 | end 220 | end 221 | end 222 | end}) 223 | window2:AddSlider({text = 'flyspeed', flag = "slider1", value = 1, min = .45, max = 10, callback = function(v) iyflyspeed = v end}) 224 | window2:AddSlider({text = 'WalkSpeed', flag = "slider1", value = 16, min = 16, max = 200, callback = function(v) walkspeed = v end}) 225 | window2:AddSlider({text = 'JumpPower', flag = "slider1", value = 50, min = 50, max = 100, callback = function(v) jumppower = v end}) 226 | 227 | --TELEPORT TO TOWNS BUTTONS NEAR BOTTOM OF SCRIPT 228 | 229 | local window3 = lib:CreateWindow('visuals') 230 | local noob 231 | window3:AddToggle({text = 'fullbright', state = fullbright, callback = function(v) 232 | fullbright = v 233 | if fullbright then 234 | game:GetService("Lighting").Brightness = 1 235 | game:GetService("Lighting").FogEnd = 1000000000 236 | for i,v in pairs(game:GetService("Lighting"):GetChildren()) do 237 | if v:IsA("ColorCorrectionEffect") or v:IsA("BlurEffect") or v:IsA("BloomEffect") or v:IsA("SunRaysEffect") or v:IsA("DepthOfFieldEffect") then 238 | v.Enabled = false 239 | end 240 | end 241 | noob = game.Lighting.Atmosphere.Changed:Connect(function() 242 | game.Lighting.Atmosphere.Density = 0 243 | game.Lighting.Atmosphere.Haze = 0 244 | game.Lighting.Atmosphere.Glare = 0 245 | end) 246 | else 247 | noob = nil 248 | game:GetService("Lighting").Brightness = 4.38 249 | game:GetService("Lighting").FogEnd = 100000 250 | for i,v in pairs(game:GetService("Lighting"):GetChildren()) do 251 | if (v:IsA("ColorCorrectionEffect") or v:IsA("BlurEffect") or v:IsA("BloomEffect") or v:IsA("SunRaysEffect") or v:IsA("DepthOfFieldEffect")) and v.Name ~= "MenuBlur" and v.Name ~= "IntroBlur" then 252 | v.Enabled = true 253 | end 254 | end 255 | end 256 | end}) 257 | 258 | for i,v in pairs(game:GetService("Lighting"):GetChildren()) do 259 | if (v:IsA("ColorCorrectionEffect") or v:IsA("BlurEffect") or v:IsA("BloomEffect") or v:IsA("SunRaysEffect") or v:IsA("DepthOfFieldEffect")) and v.Name ~= "MenuBlur" and v.Name ~= "IntroBlur" then 260 | v.Changed:Connect(function() 261 | if fullbright then 262 | v.Enabled = false 263 | end 264 | end) 265 | end 266 | end 267 | 268 | window3:AddToggle({text = 'player chams', state = playerchams, callback = function(v) 269 | playerchams = v 270 | for i,v in pairs(game:GetService("CoreGui"):WaitForChild("PLAYERCHAMS").Folder:GetChildren()) do 271 | v.Visible = playerchams 272 | end 273 | end}) 274 | 275 | window3:AddToggle({text = 'player ESP', state = playeresp, callback = function(v) 276 | playeresp = v 277 | for _,plr in pairs(game:GetService("Players"):GetPlayers()) do 278 | local plrchar = plr.Character 279 | if plr ~= LP and plrchar and plrchar:FindFirstChild("Head") and plrchar.Head:FindFirstChild("ESP") then 280 | plrchar.Head.ESP.Enabled = playeresp 281 | if v then 282 | plrchar:WaitForChild('Humanoid').DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None 283 | else 284 | plrchar:WaitForChild('Humanoid').DisplayDistanceType = Enum.HumanoidDisplayDistanceType.Viewer 285 | end 286 | end 287 | end 288 | end}) 289 | 290 | window3:AddToggle({text = 'player health ESP', state = playerhealthesp, callback = function(v) 291 | playerhealthesp = v 292 | for _,plr in pairs(game:GetService("Players"):GetPlayers()) do 293 | local plrchar = plr.Character 294 | if plr ~= LP and plrchar and plrchar.HumanoidRootPart and plrchar.HumanoidRootPart:FindFirstChild("HEALTHESP") then 295 | plrchar.HumanoidRootPart.HEALTHESP.Enabled = playerhealthesp 296 | end 297 | end 298 | end}) 299 | 300 | window3:AddToggle({text = 'mob ESP', state = mobesp, callback = function(v) 301 | mobesp = v 302 | for _,mob in pairs(workspace.NPCS:GetChildren()) do 303 | for _, hitbox in pairs(mob:GetChildren()) do 304 | if hitbox.Name == "Hitbox" then 305 | hitbox.ESP.Enabled = mobesp 306 | end 307 | end 308 | end 309 | end}) 310 | 311 | window3:AddToggle({text = 'mob health ESP', state = mobhealthesp, callback = function(v) 312 | mobhealthesp = v 313 | for _,mob in pairs(workspace.NPCS:GetChildren()) do 314 | for _, hitbox in pairs(mob:GetChildren()) do 315 | if hitbox.Name == "Hitbox" then 316 | hitbox.HEALTHESP.Enabled = mobhealthesp 317 | end 318 | end 319 | end 320 | end}) 321 | 322 | local areas = {} 323 | for _,area in pairs(workspace.Areas:GetChildren()) do 324 | if areas[area.Name] == nil then 325 | areas[area.Name] = area 326 | end 327 | end 328 | 329 | for _, area in pairs(areas) do 330 | for i,v in pairs(getconnections(area.ChildAdded)) do 331 | v:Disable() 332 | end 333 | local billgui = Instance.new('BillboardGui', area) 334 | local textlab = Instance.new('TextLabel', billgui) 335 | 336 | billgui.Name = "AREAESP" 337 | billgui.AlwaysOnTop = true 338 | billgui.ExtentsOffset = Vector3.new(0, 2, 0) 339 | billgui.Size = UDim2.new(10, 0, 10, 0) 340 | 341 | textlab.Name = 'area' 342 | textlab.BackgroundColor3 = Color3.new(0, 0, 0) 343 | textlab.BackgroundTransparency = 1 344 | textlab.BorderSizePixel = 0 345 | textlab.Position = UDim2.new(0, 0, 0, 0) 346 | textlab.Size = UDim2.new(1, 0, 1, 0) 347 | textlab.Visible = true 348 | textlab.ZIndex = 10 349 | textlab.Font = 'SciFi' 350 | textlab.FontSize = 'Size24' 351 | textlab.Text = area.Name 352 | textlab.TextTransparency = 0 353 | textlab.TextStrokeTransparency = 1 354 | textlab.TextColor3 = Color3.fromRGB(0,255,255) 355 | 356 | billgui.Enabled = false 357 | end 358 | 359 | window3:AddToggle({text = 'locations ESP', state = locationsEsp, callback = function(v) 360 | locationsEsp = v 361 | for _, area in pairs(areas) do 362 | area.AREAESP.Enabled = locationsEsp 363 | end 364 | end}) 365 | 366 | --"lib:Init()" NEAR BOTTOM OF SCRIPT 367 | 368 | local plr = game:GetService("Players").LocalPlayer 369 | local char = plr.Character 370 | 371 | local GameMt = getrawmetatable(game) 372 | local OldNameCall = GameMt.__namecall 373 | 374 | setreadonly(GameMt, false) 375 | 376 | local index = GameMt.__index 377 | local newindex = GameMt.__newindex 378 | 379 | local spoofWS = plr.Character.Humanoid.WalkSpeed 380 | local spoofJP = plr.Character.Humanoid.JumpPower 381 | 382 | GameMt.__index = newcclosure(function(t,i) 383 | -- index = "WalkSpeed" 384 | -- table = "Humanoid" 385 | if not checkcaller() then 386 | if tostring(i) == "WalkSpeed" then 387 | return spoofWS 388 | elseif tostring(i) == "JumpPower" then 389 | return spoofJP 390 | --elseif tostring(i) == "CanCollide" then 391 | -- print(tostring(i)) 392 | -- return true 393 | elseif tostring(i) == "BodyGyro" then 394 | print("ahhh goo stoopid") 395 | return false 396 | elseif tostring(i) == "BodyVelocity" then 397 | print("ahhh goo stoopidddd") 398 | return false 399 | elseif t == statetype and i == "StrafingNoPhysics" then 400 | print(tostring(i)) 401 | return false 402 | elseif tostring(i) == "BillboardGui" then 403 | print(tostring(i)) 404 | return nil 405 | end 406 | end 407 | return index(t,i) 408 | end) 409 | local a = true 410 | GameMt.__namecall = newcclosure(function(Self, ...) 411 | local Args = {...} 412 | local NamecallMethod = getnamecallmethod() 413 | if not checkcaller() then 414 | if (tostring(Self) == "UpdateLocation" or tostring(Self) == "ServerCheck") and NamecallMethod == "FireServer" and Args[1] == nil then 415 | --print(tostring(Self), NamecallMethod) 416 | --return wait(9e9) 417 | elseif (tostring(Self) == "Trigger")and NamecallMethod == "FireServer" and Args[1] == nil then 418 | if antiaggro then 419 | return 420 | end 421 | elseif (NamecallMethod == "Kick" or NamecallMethod == "kick") then 422 | return wait(9e9) 423 | elseif (NamecallMethod == "FindFirstChild" or NamecallMethod == "WaitForChild" or NamecallMethod == "FindFirstChildWhichIsA" or NamecallMethod == "FindFirstColdOfClass") and Args[1] == "BodyVelocity" then 424 | return 425 | --elseif NamecallMethod == "GetState" and tostring(Self) == "Humanoid" then 426 | -- print(tostring(Self)) 427 | -- return "Running" 428 | elseif NamecallMethod == "Connect" and tostring(Self) == "Strafing" then 429 | return wait(9e9) 430 | end 431 | end 432 | return OldNameCall(Self, ...) 433 | end) 434 | 435 | setreadonly(GameMt, true) 436 | 437 | local function espMob(mob) 438 | for i,v in pairs(getconnections(mob.Hitbox.ChildAdded)) do 439 | v:Disable() 440 | end 441 | local billgui = Instance.new('BillboardGui', mob.Hitbox) 442 | local textlab = Instance.new('TextLabel', billgui) 443 | 444 | billgui.Name = "ESP" 445 | billgui.AlwaysOnTop = true 446 | billgui.ExtentsOffset = Vector3.new(0, 3, 0) 447 | billgui.Size = UDim2.new(10, 0, 10, 0) 448 | 449 | textlab.Name = 'Mob' 450 | textlab.BackgroundColor3 = Color3.new(255, 255, 255) 451 | textlab.BackgroundTransparency = 1 452 | textlab.BorderSizePixel = 0 453 | textlab.Position = UDim2.new(0, 0, 0, 0) 454 | textlab.Size = UDim2.new(1, 0, 1, 0) 455 | textlab.Visible = true 456 | textlab.ZIndex = 10 457 | textlab.Font = 'SciFi' 458 | textlab.FontSize = 'Size14' 459 | textlab.Text = mob.Name 460 | textlab.TextTransparency = 0 461 | textlab.TextStrokeTransparency = 1 462 | textlab.TextColor3 = Color3.fromRGB(42, 163, 255) 463 | if not mobesp then 464 | billgui.Enabled = false 465 | end 466 | end 467 | 468 | local function createmobHealthbar(mob) 469 | --print("healthing " .. player.Name) 470 | for i,v in pairs(getconnections(mob.Hitbox.ChildAdded)) do 471 | v:Disable() 472 | end 473 | local billgui = Instance.new('BillboardGui', mob.Hitbox) 474 | local textlab = Instance.new('TextLabel', billgui) 475 | 476 | billgui.Name = "HEALTHESP" 477 | billgui.AlwaysOnTop = true 478 | billgui.ExtentsOffset = Vector3.new(0, 2, 0) 479 | billgui.Size = UDim2.new(10, 0, 10, 0) 480 | billgui.MaxDistance = 200 481 | 482 | textlab.Name = 'health' 483 | textlab.BackgroundColor3 = Color3.new(255, 255, 255) 484 | textlab.BackgroundTransparency = 1 485 | textlab.BorderSizePixel = 0 486 | textlab.Position = UDim2.new(0, 0, 0, 0) 487 | textlab.Size = UDim2.new(1, 0, 1, 0) 488 | textlab.Visible = true 489 | textlab.ZIndex = 10 490 | textlab.Font = 'SciFi' 491 | textlab.FontSize = 'Size14' 492 | --print(mob.Name, "healthing") 493 | textlab.Text = mob.Health.Value .. "/" .. mob.Health.MaxValue 494 | textlab.TextTransparency = 0 495 | textlab.TextStrokeTransparency = 1 496 | textlab.TextColor3 = Color3.fromRGB(167, 17, 17) 497 | --player.Character:WaitForChild('Humanoid').DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None 498 | if not mobhealthesp then 499 | billgui.Enabled = false 500 | end 501 | mob.Health:GetPropertyChangedSignal("Value"):Connect(function() --//Triggers when any Property changed 502 | if mob and mob.Health then 503 | textlab.Text = mob.Health.Value .. "/" .. mob.Health.MaxValue 504 | end 505 | end) 506 | end 507 | 508 | 509 | for _,mob in pairs(workspace.NPCS:GetChildren()) do 510 | if mob and mob:FindFirstChild("Hitbox") then 511 | espMob(mob) 512 | createmobHealthbar(mob) 513 | end 514 | end 515 | 516 | workspace.NPCS.ChildAdded:Connect(function(mob) 517 | if mob then 518 | mob:WaitForChild("Hitbox") 519 | mob:WaitForChild("Health") 520 | espMob(mob) 521 | createmobHealthbar(mob) 522 | end 523 | end) 524 | 525 | 526 | local function espPlayer(player) 527 | print("esping player", player.Name) 528 | for i,v in pairs(getconnections(player.Character:WaitForChild("Head").ChildAdded)) do 529 | v:Disable() 530 | end 531 | local billgui = Instance.new('BillboardGui', player.Character.Head) 532 | 533 | local textlab = Instance.new('TextLabel', billgui) 534 | billgui.Name = "ESP" 535 | billgui.AlwaysOnTop = true 536 | billgui.ExtentsOffset = Vector3.new(0, 3, 0) 537 | billgui.Size = UDim2.new(10, 0, 10, 0) 538 | 539 | textlab.Name = 'Player' 540 | textlab.BackgroundColor3 = Color3.new(255, 255, 255) 541 | textlab.BackgroundTransparency = 1 542 | textlab.BorderSizePixel = 0 543 | textlab.Position = UDim2.new(0, 0, 0, 0) 544 | textlab.Size = UDim2.new(1, 0, 1, 0) 545 | textlab.Visible = true 546 | textlab.ZIndex = 10 547 | textlab.Font = 'SciFi' 548 | textlab.FontSize = 'Size14' 549 | textlab.Text = player.Name 550 | textlab.TextTransparency = 0 551 | textlab.TextStrokeTransparency = 1 552 | textlab.TextColor3 = Color3.fromRGB(0,255,127) 553 | --player.Character:WaitForChild('Humanoid').DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None 554 | if not playeresp then 555 | billgui.Enabled = false 556 | end 557 | end 558 | 559 | local function createHealthbar(player) 560 | --print("healthing " .. player.Name) 561 | for i,v in pairs(getconnections(player.Character.Head.ChildAdded)) do 562 | v:Disable() 563 | end 564 | local hrp = player.Character:WaitForChild("HumanoidRootPart") 565 | local billgui = Instance.new('BillboardGui', hrp) 566 | local textlab = Instance.new('TextLabel', billgui) 567 | 568 | billgui.Name = "HEALTHESP" 569 | billgui.AlwaysOnTop = true 570 | billgui.ExtentsOffset = Vector3.new(0, 2, 0) 571 | billgui.Size = UDim2.new(10, 0, 10, 0) 572 | billgui.MaxDistance = 200 573 | 574 | textlab.Name = 'health' 575 | textlab.BackgroundColor3 = Color3.new(0, 0, 0) 576 | textlab.BackgroundTransparency = 1 577 | textlab.BorderSizePixel = 0 578 | textlab.Position = UDim2.new(0, 0, 0, 0) 579 | textlab.Size = UDim2.new(1, 0, 1, 0) 580 | textlab.Visible = true 581 | textlab.ZIndex = 10 582 | textlab.Font = 'SciFi' 583 | textlab.FontSize = 'Size14' 584 | textlab.Text = player.Character:WaitForChild("Health").Value .. "/" .. player.Character:WaitForChild("Health").MaxValue 585 | textlab.TextTransparency = 0 586 | textlab.TextStrokeTransparency = 1 587 | textlab.TextColor3 = Color3.fromRGB(255,255,255) 588 | --player.Character:WaitForChild('Humanoid').DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None 589 | if not playerhealthesp then 590 | billgui.Enabled = false 591 | end 592 | player.Character.Health:GetPropertyChangedSignal("Value"):Connect(function() --//Triggers when any Property changed 593 | if hrp and hrp.Parent and hrp.Parent.Health then 594 | textlab.Text = player.Character.Health.Value .. "/" .. player.Character:WaitForChild("Health").MaxValue 595 | end 596 | end) 597 | end 598 | 599 | for _,player in pairs(game:GetService('Players'):GetPlayers()) do 600 | if player ~= Players.LocalPlayer then 601 | local char = player.Character or player.CharacterAdded:Wait() 602 | if char and char:WaitForChild("Head") then 603 | espPlayer(player) 604 | createHealthbar(player) 605 | end 606 | player.CharacterAdded:Connect(function(character) 607 | player.Character:WaitForChild('Head') 608 | espPlayer(player) 609 | createHealthbar(player) 610 | end) 611 | end 612 | end 613 | 614 | game:GetService('Players').PlayerAdded:Connect(function(player) 615 | if player then 616 | --print(player, "has joined!") 617 | local char = player.Character or player.CharacterAdded:Wait() 618 | if char then 619 | player.Character:WaitForChild('Head') 620 | --print(char, "'s character has been found!") 621 | espPlayer(player) 622 | createHealthbar(player) 623 | end 624 | player.CharacterAdded:Connect(function(character) 625 | player.Character:WaitForChild('Head') 626 | player.Character:WaitForChild('Humanoid') 627 | espPlayer(player) 628 | createHealthbar(player) 629 | end) 630 | end 631 | end) 632 | 633 | local ScreenGui = Instance.new("ScreenGui",game:GetService('CoreGui')) 634 | ScreenGui.Name = "PLAYERCHAMS" 635 | local ESPLocation = Instance.new("Folder",ScreenGui) 636 | local targetPlayer = "" 637 | 638 | local Targets = { 639 | "HumanoidRootPart", 640 | --[["LeftLowerArm", 641 | "LeftUpperArm", 642 | "LowerTorso", 643 | "RightLowerArm", 644 | "RightUpperArm", 645 | "RightUpperLeg", 646 | "LeftLowerLeg", 647 | "LeftUpperLeg", 648 | "RightLowerLeg", 649 | "UpperTorso"--]] 650 | } 651 | 652 | 653 | function espPart(part,player) 654 | local esp = Instance.new("BoxHandleAdornment",ESPLocation) 655 | esp.Adornee = part 656 | esp.AlwaysOnTop = true 657 | esp.ZIndex = 1 658 | esp.Transparency = 0.7 659 | esp.Size = part.Size / 1.1 660 | if part.Name == "LeftHand" or part.Name == "RightHand" then 661 | esp.Size = part.Size - Vector3.new(0,1,0) 662 | end 663 | esp.Color3 = Color3.fromRGB(255,0,0)--player.TeamColor.Color 664 | if player.Name == targetPlayer then 665 | esp.Size = part.Size + Vector3.new(.1, .1, .1) 666 | esp.Color3 = Color3.fromRGB(255,255,0) 667 | end 668 | esp.MouseEnter:Connect(function() 669 | if player.Team ~= game:GetService('Players').LocalPlayer.Team then 670 | local currentFrame = esp 671 | end 672 | end) 673 | 674 | player.CharacterRemoving:Connect(function() 675 | esp:Destroy() 676 | end) 677 | if player.Team then 678 | player.Team.PlayerRemoved:Connect(function(RemovedPlayer) 679 | if RemovedPlayer ~= player and RemovedPlayer ~= game:GetService('Players').LocalPlayer then 680 | return 681 | else 682 | esp.Color3 = player.TeamColor.Color 683 | end 684 | end) 685 | end 686 | return esp 687 | end 688 | 689 | function espPartPlayer(player) 690 | if player.Character ~= nil then 691 | for _,part in pairs(player.Character:GetChildren())do 692 | 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 693 | --print(part) 694 | local esp = espPart(part,player) 695 | if not playerchams then 696 | esp.Visible = false 697 | end 698 | end 699 | end 700 | end 701 | end 702 | 703 | function ESP() 704 | ESPLocation:ClearAllChildren() 705 | for _,player in pairs(game:GetService('Players'):GetPlayers())do 706 | if player ~= game:GetService('Players').LocalPlayer then 707 | espPartPlayer(player) 708 | end 709 | end 710 | end 711 | 712 | ESP() 713 | for i,v in pairs(ESPLocation:GetChildren()) do 714 | v.Visible = false 715 | end 716 | 717 | local function WaitUntilCharacterLoaded(Char) 718 | for _,Part in pairs(Targets)do 719 | Char:WaitForChild(Part) 720 | end 721 | end 722 | 723 | game:GetService('Players').PlayerAdded:Connect(function(Player) 724 | Player.CharacterAdded:Connect(function(Char) 725 | WaitUntilCharacterLoaded(Char) 726 | espPartPlayer(Player) 727 | end) 728 | end) 729 | 730 | for _,Player in pairs(game:GetService('Players'):GetPlayers())do 731 | Player.CharacterAdded:Connect(function(Char) 732 | WaitUntilCharacterLoaded(Char) 733 | espPartPlayer(Player) 734 | end) 735 | end 736 | 737 | local function isAlive() 738 | local char = LocalPlayer.Character 739 | if char and char:FindFirstChild("HumanoidRootPart") and char:FindFirstChild("Humanoid") and char:FindFirstChild("Client") and char:FindFirstChild("Health") and char.Humanoid:GetState() ~= Enum.HumanoidStateType.PlatformStanding and char.Humanoid:GetState() ~= Enum.HumanoidStateType.Ragdoll then 740 | local health = char.Health 741 | local hum = char.Humanoid 742 | if health.Value > 0 and hum.Health > 0 then 743 | return true 744 | end 745 | end 746 | return false 747 | end 748 | 749 | local isRunning = false 750 | local runAnimPlaying = false 751 | local Animations = char.Client.Animations 752 | local run = char.Humanoid:LoadAnimation(Animations.Run) 753 | if char.Humanoid.WalkSpeed < walkspeed then 754 | char.Humanoid.WalkSpeed = walkspeed 755 | end 756 | if char.Humanoid.JumpPower < jumppower then 757 | char.Humanoid.JumpPower = jumppower 758 | end 759 | local cheese 760 | cheese = char.Humanoid.Changed:Connect(function() 761 | if not legitmode then 762 | if isAlive() then 763 | if char.Humanoid.WalkSpeed < walkspeed then 764 | char.Humanoid.WalkSpeed = walkspeed 765 | end 766 | if char.Humanoid.JumpPower < jumppower then 767 | char.Humanoid.JumpPower = jumppower 768 | end 769 | end 770 | end 771 | end) 772 | 773 | plr.CharacterAdded:Connect(function(char) 774 | char:WaitForChild("Humanoid") 775 | char:WaitForChild("JumpCooldown") 776 | if nojumpCooldown then 777 | char.JumpCooldown.Disabled = true 778 | end 779 | if not legitmode then 780 | if char.Humanoid.WalkSpeed < walkspeed then 781 | char.Humanoid.WalkSpeed = walkspeed 782 | end 783 | if char.Humanoid.JumpPower < jumppower then 784 | char.Humanoid.JumpPower = jumppower 785 | end 786 | cheese = nil 787 | char.Humanoid.Changed:Connect(function() 788 | if isAlive() then 789 | if char.Humanoid.WalkSpeed < walkspeed then 790 | char.Humanoid.WalkSpeed = walkspeed 791 | end 792 | if char.Humanoid.JumpPower < jumppower then 793 | char.Humanoid.JumpPower = jumppower 794 | end 795 | end 796 | end) 797 | end 798 | end) 799 | 800 | local isTweening = false; 801 | 802 | cheese = char.Humanoid.StateChanged:Connect(function(oldState, newState) 803 | if (isFlying or isTweening) and newState == Enum.HumanoidStateType.Freefall then 804 | --dsschar.Humanoid:ChangeState(Enum.HumanoidStateType.Running) 805 | end 806 | end) 807 | 808 | plr.CharacterAdded:Connect(function(char) 809 | cheese = nil 810 | char:WaitForChild("Humanoid").StateChanged:Connect(function(oldState, newState) 811 | if (isFlying or isTweening) and newState == Enum.HumanoidStateType.Freefall then 812 | --char.Humanoid:ChangeState(Enum.HumanoidStateType.Running) 813 | end 814 | end) 815 | end) 816 | 817 | local WHeld = false 818 | local SHeld = false 819 | local AHeld = false 820 | local DHeld = false 821 | 822 | Mouse.KeyDown:Connect(function(key) 823 | if key == "w" then 824 | WHeld = true 825 | end 826 | end) 827 | 828 | Mouse.KeyUp:Connect(function(key) 829 | if key == "w" then 830 | WHeld = false 831 | end 832 | end) 833 | 834 | Mouse.KeyDown:Connect(function(key) 835 | if key == "s" then 836 | SHeld = true 837 | end 838 | end) 839 | 840 | Mouse.KeyUp:Connect(function(key) 841 | if key == "s" then 842 | SHeld = false 843 | end 844 | end) 845 | 846 | Mouse.KeyDown:Connect(function(key) 847 | if key == "a" then 848 | AHeld = true 849 | end 850 | end) 851 | 852 | Mouse.KeyUp:Connect(function(key) 853 | if key == "a" then 854 | AHeld = false 855 | end 856 | end) 857 | 858 | 859 | Mouse.KeyDown:Connect(function(key) 860 | if key == "d" then 861 | DHeld = true 862 | end 863 | end) 864 | 865 | Mouse.KeyUp:Connect(function(key) 866 | if key == "d" then 867 | DHeld = false 868 | end 869 | end) 870 | 871 | 872 | local UIS = game:GetService("UserInputService") 873 | 874 | UIS.InputBegan:Connect(function(Input, GameProcessedEvent) 875 | if not GameProcessedEvent then 876 | if Input.KeyCode == Enum.KeyCode.LeftShift then 877 | isRunning = true 878 | walkspeed = walkspeed + 16 879 | iyflyspeed = iyflyspeed + .3 880 | if WHeld then 881 | CONTROL.F = iyflyspeed 882 | elseif SHeld then 883 | CONTROL.B = -iyflyspeed 884 | elseif AHeld then 885 | CONTROL.L = -iyflyspeed 886 | elseif DHeld then 887 | CONTROL.R = iyflyspeed 888 | end 889 | end 890 | end 891 | end) 892 | 893 | UIS.InputEnded:Connect(function(Input, GameProcessedEvent) 894 | if Input.KeyCode == Enum.KeyCode.LeftShift then 895 | isRunning = false 896 | walkspeed = walkspeed - 16 897 | iyflyspeed = iyflyspeed - .3 898 | if WHeld then 899 | CONTROL.F = iyflyspeed 900 | elseif SHeld then 901 | CONTROL.B = -iyflyspeed 902 | elseif AHeld then 903 | CONTROL.L = -iyflyspeed 904 | elseif DHeld then 905 | CONTROL.R = iyflyspeed 906 | end 907 | end 908 | end) 909 | 910 | local Players = game:GetService("Players") 911 | local LocalPlayer = Players.LocalPlayer 912 | 913 | local function findNearestMob(mobname) 914 | local Character = LocalPlayer.Character 915 | local HumanoidRootPart = Character:FindFirstChild("HumanoidRootPart") 916 | if not (Character or HumanoidRootPart) then return end 917 | local TargetDistance = math.huge 918 | local Target 919 | for i,v in pairs(workspace.NPCS:GetChildren()) do 920 | if v.Name == mobname then 921 | if v:FindFirstChild("Hitbox") then 922 | local mag = (HumanoidRootPart.Position - v.Hitbox.Position).Magnitude 923 | if mag < TargetDistance then 924 | TargetDistance = mag 925 | Target = v.Hitbox 926 | end 927 | end 928 | end 929 | end 930 | --Target.Size = Target.Size + Vector3.new(2,2,2) 931 | return Target 932 | end 933 | 934 | 935 | local function tweenplayer(cframe,speed, waitTrue) 936 | repeat wait() until LocalPlayer.Character 937 | and LocalPlayer.Character:FindFirstChild("HumanoidRootPart") 938 | and LocalPlayer.Character:FindFirstChild("Humanoid") 939 | and LocalPlayer.Character:FindFirstChild("Humanoid").Health > 0 940 | and LocalPlayer.Character:FindFirstChild("Torso") 941 | isTweening = true 942 | local TweenInfo = TweenInfo.new(((cframe.Position - LocalPlayer.Character.HumanoidRootPart.Position).Magnitude)/speed, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 0, false) 943 | local Objective = {CFrame = cframe} 944 | local TweenPlayer = game:GetService("TweenService"):Create(LocalPlayer.Character.HumanoidRootPart, TweenInfo, Objective) 945 | --game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Anchored = true 946 | TweenPlayer:Play() 947 | game:GetService("RunService").RenderStepped:Wait() 948 | if waitTrue then 949 | TweenPlayer.Completed:Wait() 950 | end 951 | --wait(.1); 952 | --game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Anchored = false 953 | isTweening = false; 954 | return TweenPlayer 955 | end 956 | 957 | local function checkValid(mob) 958 | local char = LocalPlayer.Character 959 | local HumanoidRootPart = char:FindFirstChild("HumanoidRootPart") 960 | if not (char or HumanoidRootPart) then return true end 961 | return not mob or not mob.Parent or mob.Parent.Health.Value <= 0 or char.Humanoid.Health <= 0 962 | end 963 | 964 | local doingQuest = false 965 | 966 | local function findNearestQuest() 967 | local Character = LocalPlayer.Character 968 | local HumanoidRootPart = Character:FindFirstChild("HumanoidRootPart") 969 | if not (Character or HumanoidRootPart) then return end 970 | local TargetDistance = math.huge 971 | local Target 972 | for i,v in pairs(workspace:GetDescendants()) do 973 | if v.Name == "Papers" then 974 | for a,b in pairs(v:GetDescendants()) do 975 | if b.Name == "QuestName" and b.Text == questName then 976 | local part = b.Parent.Parent.Parent 977 | local mag = (HumanoidRootPart.Position - part.Position).Magnitude 978 | if mag < TargetDistance then 979 | TargetDistance = mag 980 | Target = part 981 | end 982 | end 983 | end 984 | end 985 | end 986 | return Target 987 | end 988 | 989 | --RAYCAST TELEPORT PLAYER 990 | local stopTweening = false 991 | local isRayCastTweening = false 992 | local function raycastTweenPlayer(part) 993 | if typeof(part) == "Vector3" then 994 | temppart = Instance.new("Part", workspace) 995 | temppart.Position = part 996 | temppart.Anchored = true 997 | temppart.CanCollide = false 998 | part = temppart 999 | end 1000 | if isAlive() and isRayCastTweening == false then 1001 | isRayCastTweening = true 1002 | local char = LocalPlayer.Character 1003 | local hrp = char:WaitForChild("HumanoidRootPart") 1004 | local currentTween 1005 | local height = 3 + hrp.Position.Y 1006 | if isAlive() and char:FindFirstChild("HumanoidRootPart") then 1007 | local dist = (char.HumanoidRootPart.Position-part.Position).Magnitude 1008 | local secondTween 1009 | repeat 1010 | game:GetService("RunService").RenderStepped:Wait() 1011 | while math.sqrt((part.Position.X-hrp.Position.X)^2+(part.Position.Z-hrp.Position.Z)^2) > 10 and isAlive() and not stopTweening do 1012 | local rayParams = RaycastParams.new() 1013 | rayParams.FilterDescendantsInstances = {hrp.Parent, workspace.IgnoreList, workspace.LOWL, workspace.NPCS} 1014 | local lookvec = (Vector3.new(part.Position.X, part.Position.Y, part.Position.Z) - hrp.Position).Unit*10 1015 | local raycastResult = workspace:Raycast(hrp.Position, lookvec, rayParams) 1016 | if raycastResult and raycastResult.Instance.Name ~= "LOWL" then 1017 | height = height + 5 1018 | if currentTween then currentTween:Cancel() end 1019 | if isAlive() and not stopTweening then tweenplayer(CFrame.new(hrp.Position.X, height, hrp.Position.Z),tweenspeed) end 1020 | end 1021 | local partPos = part.Position 1022 | local hrpPos = hrp.Position 1023 | if isAlive() and not stopTweening then currentTween = tweenplayer(CFrame.new(partPos.X, height, partPos.Z),tweenspeed) end 1024 | end 1025 | until math.sqrt((part.Position.X-hrp.Position.X)^2+(part.Position.Z-hrp.Position.Z)^2) <= 10 or not isAlive() or stopTweening 1026 | if currentTween then currentTween:Cancel() end 1027 | if secondTween then secondTween:Cancel() end 1028 | repeat 1029 | if not isAlive() or stopTweening then break end 1030 | tweenplayer(part.CFrame+Vector3.new(0,6,0),tweenspeed) 1031 | until (char.HumanoidRootPart.Position-part.Position).Magnitude < 10 1032 | wait(1) 1033 | end 1034 | isRayCastTweening = false 1035 | end 1036 | end 1037 | 1038 | window2:AddButton({text = 'TWEEN TO TOWN 1', callback = function() 1039 | if isAlive() and not legitmode then 1040 | local pos = Vector3.new(-2768.84863, -91.7610626, 2346.71216) 1041 | local hrp = LocalPlayer.Character.HumanoidRootPart 1042 | raycastTweenPlayer(pos) 1043 | end 1044 | end}) 1045 | 1046 | window2:AddButton({text = 'TWEEN TO TOWN 2', callback = function() 1047 | if isAlive() and not legitmode then 1048 | local pos = Vector3.new(-5252.22656, 170.033829, 2402.03809) 1049 | local hrp = LocalPlayer.Character.HumanoidRootPart 1050 | raycastTweenPlayer(pos) 1051 | end 1052 | end}) 1053 | 1054 | window2:AddButton({text = 'TWEEN TO TOWN 3', callback = function() 1055 | if isAlive() and not legitmode then 1056 | local pos = Vector3.new(-5727.87402, 276.396912, 5878.82813) 1057 | local hrp = LocalPlayer.Character.HumanoidRootPart 1058 | raycastTweenPlayer(pos) 1059 | end 1060 | end}) 1061 | 1062 | window2:AddButton({text = 'TWEEN TO TOWN 4', callback = function() 1063 | if isAlive() and not legitmode then 1064 | local pos = Vector3.new(-10188.8535, -109.471252, 218.569336) 1065 | local hrp = LocalPlayer.Character.HumanoidRootPart 1066 | raycastTweenPlayer(pos) 1067 | end 1068 | end}) 1069 | 1070 | window2:AddButton({text = 'STOP TWEENING', callback = function() 1071 | stopTweening = true 1072 | wait(.5) 1073 | stopTweening = false 1074 | end}) 1075 | 1076 | lib:Init() 1077 | 1078 | local function doQuest() 1079 | if not LocalPlayer.PlayerGui:FindFirstChild("Quest") and LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then 1080 | local questPart = findNearestQuest() 1081 | if questPart and not doingQuest then 1082 | doingQuest = true 1083 | if autoQuest and isAlive() then 1084 | local currentTween 1085 | local char = LocalPlayer.Character 1086 | local hrp = char:WaitForChild("HumanoidRootPart") 1087 | local height = 3 + hrp.Position.Y 1088 | if isAlive() and char:FindFirstChild("HumanoidRootPart") then 1089 | local dist = (char.HumanoidRootPart.Position-questPart.Position).Magnitude 1090 | local secondTween 1091 | repeat 1092 | game:GetService("RunService").RenderStepped:Wait() 1093 | while math.sqrt((questPart.Position.X-hrp.Position.X)^2+(questPart.Position.Z-hrp.Position.Z)^2) > 10 and isAlive() do 1094 | local rayParams = RaycastParams.new() 1095 | rayParams.FilterDescendantsInstances = {hrp.Parent, workspace.IgnoreList, workspace.LOWL, workspace.NPCS} 1096 | local lookvec = (Vector3.new(questPart.Position.X, questPart.Position.Y, questPart.Position.Z) - hrp.Position).Unit*10 1097 | local raycastResult = workspace:Raycast(hrp.Position, lookvec, rayParams) 1098 | if raycastResult and raycastResult.Instance.Name ~= "LOWL" then 1099 | height = height + 5 1100 | if currentTween then currentTween:Cancel() end 1101 | if isAlive() then tweenplayer(CFrame.new(hrp.Position.X, height, hrp.Position.Z),tweenspeed) end 1102 | end 1103 | local questPartPos = questPart.Position 1104 | local hrpPos = hrp.Position 1105 | if isAlive() then currentTween = tweenplayer(CFrame.new(questPartPos.X, height, questPartPos.Z),tweenspeed) end 1106 | end 1107 | until math.sqrt((questPart.Position.X-hrp.Position.X)^2+(questPart.Position.Z-hrp.Position.Z)^2) <= 10 or not autoQuest or not isAlive() 1108 | if currentTween then currentTween:Cancel() end 1109 | if secondTween then secondTween:Cancel() end 1110 | repeat 1111 | if not isAlive() then break end 1112 | tweenplayer(questPart.CFrame+Vector3.new(0,6,0),tweenspeed) 1113 | until (char.HumanoidRootPart.Position-questPart.Position).Magnitude < 10 1114 | wait(.5) 1115 | fireclickdetector(questPart.ClickDetector) 1116 | wait(.5) 1117 | doingQuest = false 1118 | end 1119 | end 1120 | end 1121 | else 1122 | if noclip == false then 1123 | collideParts() 1124 | elseif baseplatecollideOn == false then 1125 | baseplateCollideParts() 1126 | end 1127 | end 1128 | end 1129 | 1130 | local function isQuestAvailable() 1131 | if not LocalPlayer.PlayerGui:FindFirstChild("Quest") and autoQuest then 1132 | return true 1133 | end 1134 | return false 1135 | end 1136 | 1137 | 1138 | 1139 | spawn(function() 1140 | while wait() do 1141 | if farm and not isQuestAvailable() then 1142 | --local success, result = pcall(function() 1143 | LocalPlayer.DevCameraOcclusionMode = 1 1144 | if isAlive() then 1145 | local char = LocalPlayer.Character 1146 | local hrp = char.HumanoidRootPart 1147 | --char.Client.Events.LightAttack:FireServer("SecretCode") 1148 | local mob = findNearestMob(mobName) 1149 | if mob then 1150 | local dist = (char.HumanoidRootPart.Position-mob.Position).Magnitude 1151 | local secondTween 1152 | local thirdTween 1153 | local height = 3 + hrp.Position.Y 1154 | repeat 1155 | if thirdTween then thirdTween:Cancel() end 1156 | game:GetService("RunService").RenderStepped:Wait() 1157 | if farm and isAlive()then 1158 | local currentTween 1159 | while math.sqrt((mob.Position.X-hrp.Position.X)^2+(mob.Position.Z-hrp.Position.Z)^2) > 15 and not isQuestAvailable() and isAlive() do 1160 | local rayParams = RaycastParams.new() 1161 | rayParams.FilterDescendantsInstances = {hrp.Parent, workspace.IgnoreList, workspace.LOWL, workspace.NPCS} 1162 | local lookvec = (Vector3.new(mob.Position.X, mob.Position.Y, mob.Position.Z) - hrp.Position).Unit*15 1163 | local raycastResult = workspace:Raycast(hrp.Position, lookvec, rayParams) 1164 | if raycastResult and raycastResult.Instance.Name ~= "LOWL" then 1165 | height = height + 5 1166 | if currentTween then 1167 | currentTween:Cancel() 1168 | end 1169 | if not isQuestAvailable() and isAlive() then tweenplayer(CFrame.new(hrp.Position.X, height, hrp.Position.Z),tweenspeed) end 1170 | end 1171 | local mobPos = mob.Position 1172 | local hrpPos = hrp.Position 1173 | if not isQuestAvailable() and isAlive() then currentTween = tweenplayer(CFrame.new(mobPos.X, height, mobPos.Z),tweenspeed) end 1174 | end 1175 | end 1176 | until math.sqrt((mob.Position.X-hrp.Position.X)^2+(mob.Position.Z-hrp.Position.Z)^2) <= 15 or checkValid(mob) or not farm or not isQuestAvailable() or isAlive() 1177 | if currentTween then currentTween:Cancel() end 1178 | if secondTween then secondTween:Cancel() end 1179 | if isAlive() then 1180 | dist = (char.HumanoidRootPart.Position-mob.Position).Magnitude 1181 | if not isQuestAvailable() and dist > 30 and isAlive() then tweenplayer(mob.CFrame+Vector3.new(0,3,0),tweenspeed,true) end 1182 | local hrp = LocalPlayer.Character.HumanoidRootPart 1183 | local distanceFrom = CFrame.new(0,0,math.random(10,10.1)) 1184 | local angle = CFrame.Angles(0, math.rad(90), 0) 1185 | mob.Transparency = .5 1186 | if mob.Parent and not string.match(mob.Parent.Name:lower(), "wolf") then 1187 | angle = CFrame.Angles(0,0,0) 1188 | distanceFrom = CFrame.new(0,0,math.random(11,11.1)) 1189 | end 1190 | if mob.Parent and (mob.Parent.Name == "Golem" or mob.Parent.Name == "Orc") then 1191 | angle = CFrame.Angles(0, math.rad(180), 0) 1192 | end 1193 | if distanceOption == "Custom Distance" then 1194 | distanceFrom = CFrame.new(0,0,math.random(mobDistance,mobDistance+.1)) 1195 | end 1196 | spawn(function() 1197 | while not(checkValid(mob) or not farm or isQuestAvailable() or not isAlive()) and not changingDistance do 1198 | thirdTween = tweenplayer(CFrame.new((mob.CFrame*angle*distanceFrom).Position, hrp.Position + (mob.Position-hrp.Position).Unit),math.huge) 1199 | end 1200 | end) 1201 | end 1202 | end 1203 | if autoQuest and not doingQuest then 1204 | while isTweening == true do wait() end 1205 | repeat doQuest() until isQuestAvailable() == false 1206 | end 1207 | end 1208 | --end) 1209 | --if not success then 1210 | -- warn(result) 1211 | --end 1212 | elseif isQuestAvailable() and not doingQuest then 1213 | doQuest() 1214 | end 1215 | end 1216 | end) 1217 | 1218 | local function findNearestEntity() 1219 | local Character = LocalPlayer.Character 1220 | local HumanoidRootPart = Character:FindFirstChild("HumanoidRootPart") 1221 | if not (Character or HumanoidRootPart) then return end 1222 | local TargetDistance = math.huge 1223 | local Target 1224 | for i,v in pairs(workspace.NPCS:GetChildren()) do 1225 | if (v:FindFirstChild("Hitbox") and v:FindFirstChild("HumanoidRootPart") and v:FindFirstChild("Humanoid") and v.Humanoid.Health > 0) then 1226 | local mag = (HumanoidRootPart.Position - v.Hitbox.Position).Magnitude 1227 | if mag < TargetDistance then 1228 | TargetDistance = mag 1229 | Target = v.Hitbox 1230 | end 1231 | end 1232 | end 1233 | for i,v in pairs(game.Players:GetPlayers()) do 1234 | if v ~= LocalPlayer then 1235 | if v.Character and v.Character:FindFirstChild("HumanoidRootPart") then 1236 | local mag = (HumanoidRootPart.Position - v.Character.HumanoidRootPart.Position).Magnitude 1237 | if mag < TargetDistance then 1238 | TargetDistance = mag 1239 | Target = v.Character.HumanoidRootPart 1240 | end 1241 | end 1242 | end 1243 | end 1244 | return Target 1245 | end 1246 | 1247 | 1248 | spawn(function() 1249 | while wait(_G.attackspeed or .1) do 1250 | if autoAttack or farm then 1251 | if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") and LocalPlayer.Character:FindFirstChild("Client") and LocalPlayer.Character.Client:FindFirstChild("Events")then 1252 | local entity = findNearestEntity() 1253 | local hrp = LocalPlayer.Character.HumanoidRootPart 1254 | if entity and (hrp.Position - entity.Position).Magnitude < 50 then 1255 | local char = LocalPlayer.Character 1256 | char.Client.Events.LightAttack:FireServer("SecretCode") 1257 | print("attacking") 1258 | end 1259 | end 1260 | end 1261 | end 1262 | end) 1263 | 1264 | spawn(function() 1265 | while wait() do 1266 | if autoSword then 1267 | if isAlive() then 1268 | for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do 1269 | if v:IsA("Tool") and string.match(v.Name:lower(), "sword") then 1270 | v:Activate() 1271 | end 1272 | end 1273 | end 1274 | end 1275 | end 1276 | end) 1277 | 1278 | spawn(function() 1279 | while wait(.3) do 1280 | if spamSword then 1281 | if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") and LocalPlayer.Character:FindFirstChild("Client") and LocalPlayer.Character.Client:FindFirstChild("Events")then 1282 | local char = LocalPlayer.Character 1283 | char.Client.Events.ActivateWeapon:FireServer() 1284 | for i,v in pairs(char:GetChildren()) do 1285 | if v:IsA("Tool") and string.match(v.Name:lower(), "sword") and not autoAttack then 1286 | v:Activate() 1287 | end 1288 | end 1289 | end 1290 | end 1291 | end 1292 | end) 1293 | spawn(function() 1294 | while wait() do 1295 | local cheese 1296 | if antiafk then 1297 | local VirtualUser=game:GetService('VirtualUser') 1298 | cheese = game:service('Players').LocalPlayer.Idled:Connect(function() 1299 | VirtualUser:CaptureController() 1300 | VirtualUser:ClickButton2(Vector2.new()) 1301 | end) 1302 | else 1303 | cheese = nil 1304 | end 1305 | end 1306 | end) 1307 | 1308 | spawn(function() 1309 | game:GetService("RunService").Stepped:Connect(function() 1310 | pcall(function() 1311 | if noclip or farm or autoQuest then 1312 | LocalPlayer.Character.Head.CanCollide = false 1313 | LocalPlayer.Character.Torso.CanCollide = false 1314 | end 1315 | end) 1316 | end) 1317 | end) 1318 | 1319 | local W = Instance.new("Part", workspace) 1320 | W.Size = Vector3.new(5, 2, 5) 1321 | W.CFrame = LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(0, -4, 0) 1322 | W.Transparency = 1 1323 | W.Anchored = true 1324 | W.Name = "LOWL" 1325 | game:GetService("RunService"):BindToRenderStep("",0,function() 1326 | if not LocalPlayer.Character or not LocalPlayer.Character:findFirstChildOfClass("Humanoid") then 1327 | return 1328 | end 1329 | if (farm or autoQuest or isFlying or isRayCastTweening) and LocalPlayer.Character and LocalPlayer.Character.HumanoidRootPart then 1330 | pcall(function() 1331 | W.CanCollide = true 1332 | W.CFrame = LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(0, -4, 0) 1333 | end) 1334 | else 1335 | W.CanCollide = false 1336 | end 1337 | end) 1338 | --------------------------------------------------------------------------------