- repeat wait() until game:IsLoaded()
- -- Fail checks
- if game.PlaceId ~= 901793731 then
- game.Players.LocalPlayer:Kick("D-Day Destroyer only works on D-Day .")
- return
- end
- if getgenv().ddestroyer_executed == true then
- game.Players.LocalPlayer:Kick("DDestroyer was already executed once.")
- return
- else
- getgenv().ddestroyer_executed = true
- end
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local UserInputService = game:GetService("UserInputService")
- local RunService = game:GetService("RunService")
- local Players = game:GetService("Players")
- local TweenService = game:GetService("TweenService")
- local FrameworkLib = require(game:GetService("ReplicatedStorage"):WaitForChild("Modules"):WaitForChild("Universal"):WaitForChild("Framework"))
- -- Needed map things
- local map = workspace:WaitForChild("Map")
- local vegetation = workspace:WaitForChild("Vegetation")
- local map_boundaries = workspace:WaitForChild("Map_Boundaries")
- local boundaries = workspace:WaitForChild("Boundaries")
- local helmet_crates = workspace:WaitForChild("Helmet_Crates")
- local medic_bags = workspace:WaitForChild("Medic_Bags")
- -- Settings
- local can_shoot = true
- -- Triggerbot X
- getgenv().triggerbot = false
- -- Aimbot X
- getgenv().aimbot = false
- getgenv().aiming = false
- getgenv().aimbotfov = 0
- getgenv().closest_to_cursor = false
- getgenv().aimbotfovcircle = false
- getgenv().aimbotfovcolor = Color3.new(255, 0, 0)
- getgenv().aimbotparts = {}
- getgenv().silent = false
- getgenv().silentautoshoot = false
- getgenv().aimbot_button = Enum.KeyCode.LeftAlt
- getgenv().aimbot_always_on = false
- -- Gun settings X
- getgenv().everygunauto = false
- getgenv().nocamerashake = false
- getgenv().nospread = false
- getgenv().infiniteammo = false
- getgenv().aimview_tog = false
- getgenv().aimview = 0
- -- Esp X
- getgenv().player_esp = false
- getgenv().player_esp_color = Color3.new(255,0,0)
- getgenv().player_tracers = false
- getgenv().player_tracers_color = Color3.new(255,0,0)
- getgenv().mine_esp = false
- getgenv().mine_esp_color = Color3.new(255,0,0)
- -- Cursor Silent kill X
- getgenv().cursor_silentkill = false
- -- Shoot aura X
- getgenv().shootaura = false
- getgenv().shootauraparts = {"Head", "HumanoidRootPart", "LeftHand", "RightHand", "LeftLowerArm", "RightLowerArm", "RightUpperArm", "LeftUpperArm"}
- getgenv().shootaurafov = 0
- getgenv().shootaura_range = math.huge
- getgenv().shootaurafovcircle = false
- getgenv().shootaurafovcolor = Color3.new(255,0,0)
- -- Local Player stuff X
- getgenv().walkspeedtog = false
- getgenv().walkspeedval = 64
- getgenv().jumppowertog = false
- getgenv().jumppowerval = 64
- getgenv().walkspeedtog = false
- getgenv().walkspeedval = 64
- getgenv().collide = true
- -- Player data
- local possible_player_parts =
- {
- "Helmet",
- "Head",
- "UpperTorso",
- "LowerTorso",
- "LeftUpperArm",
- "RightUpperArm",
- "LeftLowerArm",
- "RightLowerArm",
- "LeftHand",
- "RightHand",
- "LeftUpperLeg",
- "RightUpperLeg",
- "LeftLowerLeg",
- "RightLowerLeg",
- "LeftFoot",
- "RightFoot"
- }
- local player_data = {}
- -- Universal functions
- local function updatePlayerData()
- player_data["player"] = Players.LocalPlayer
- player_data["character"] = player_data["player"].Character or player_data["player"].CharacterAdded:Wait()
- player_data["humanoid"] = player_data["character"]:WaitForChild("Humanoid")
- player_data["root"] = player_data["character"]:WaitForChild("HumanoidRootPart")
- player_data["camera"] = workspace.CurrentCamera
- end
- updatePlayerData()
- local function getDistanceFromPlayer(part)
- return (player_data["root"].Position - part.Position).Magnitude
- end
- local function createInstance(inst, args)
- local instance = Instance.new(inst)
- -- Instance properties
- for key, value in pairs(args) do
- instance[key] = value
- end
- return instance
- end
- -- Cheat functions
- -- COOL GUN STUFF
- local function setGunSettings(gun)
- if gun == nil or not gun:IsA("Tool") then
- return
- end
- local gun_info = FrameworkLib.weapons:FindFirstChild(gun.Name)
- if not gun_info then
- return
- end
- local gun_settings = gun_info:FindFirstChild("Setting")
- if not gun_settings then
- return
- end
- gun_settings = require(gun_settings)
- local unequipped = false
- local unequipped_e
- unequipped_e = gun.Unequipped:Connect(function()
- unequipped = true
- unequipped_e:Disconnect()
- end)
- local gun_script = gun:FindFirstChild("GunScript_Local")
- if not gun_script then
- return
- end
- local script_env = getsenv(gun_script)
- local ToolAction = script_env.ToolAction
- local DetermineSpread = script_env.DetermineSpread
- if getgenv().everygunauto then
- local table_ = getupvalue(ToolAction, 10)
- table_.Auto = true
- setupvalue(ToolAction, 10, table_)
- end
- local fake_camera = Instance.new("Camera")
- while not unequipped do
- if getgenv().nocamerashake then
- setupvalue(ToolAction, 9, fake_camera)
- end
- if getgenv().infiniteammo then
- setupvalue(ToolAction, 5, gun_settings.AmmoPerClip)
- end
- if getgenv().aimview_tog then
- local table_ = getupvalue(ToolAction, 10)
- table_.AimView = getgenv().aimview
- setupvalue(ToolAction, 10, table_)
- end
- wait()
- end
- fake_camera:Destroy()
- end
- player_data["character"].ChildAdded:Connect(function(child)
- setGunSettings(child)
- end)
- player_data["player"].CharacterAdded:Connect(function()
- updatePlayerData()
- player_data["character"].ChildAdded:Connect(function(child)
- setGunSettings(child)
- end)
- end)
- -- ESP
- local function drawBoxOnPlayer(player)
- local box = Drawing.new("Square")
- box.Visible = false
- box.Thickness = 1
- box.Transparency = 1
- box.Filled = false
- local connection
- connection = RunService.RenderStepped:Connect(function()
- box.Visible = false
- if player == nil or player.Parent == nil then
- connection:Disconnect()
- box:Remove()
- return
- end
- local character = player.Character
- if player == player_data["player"] or character == nil then
- return
- end
- local root = character:FindFirstChild("HumanoidRootPart")
- if root == nil then
- return
- end
- if (root.Position - player_data["root"].Position).Magnitude 0 then
- box.Size = Vector2.new(1000 / root_position.Z, head_position.Y - legs_position.Y)
- box.Position = Vector2.new(root_position.X - box.Size.X / 2, root_position.Y - box.Size.Y / 2)
- box.Color = getgenv().player_esp_color
- box.Visible = getgenv().player_esp
- end
- end)
- end
- local function playerEsp()
- for index, player in pairs(Players:GetPlayers()) do
- drawBoxOnPlayer(player)
- end
- Players.PlayerAdded:Connect(function(player)
- drawBoxOnPlayer(player)
- end)
- end
- -- Mine ESP
- local function drawBoxOnPart(part)
- local box = Drawing.new("Square")
- box.Visible = false
- box.Thickness = 1
- box.Transparency = 1
- box.Filled = false
- local connection
- connection = RunService.RenderStepped:Connect(function()
- box.Visible = false
- if part == nil or part.Parent == nil then
- connection:Disconnect()
- box:Remove()
- return
- end
- if not part:IsDescendantOf(workspace) then
- return
- end
- local position, on_screen = player_data["camera"]:worldToViewportPoint(part.Position)
- if on_screen then
- box.Size = Vector2.new(500 / position.Z, 500 / position.Z)
- box.Position = Vector2.new(position.X - box.Size.X / 2, position.Y - box.Size.Y / 2)
- box.Color = getgenv().mine_esp_color
- box.Visible = getgenv().mine_esp
- end
- end)
- end
- local function mineEsp()
- for index, part in pairs(map:GetChildren()) do
- if part.Name == "Static_Landmine" then
- drawBoxOnPart(part)
- end
- end
- map.ChildAdded:Connect(function(part)
- if part.Name == "Static_Landmine" then
- drawBoxOnPart(part)
- end
- end)
- end
- -- Tracers
- local function drawLineToPlayer(player)
- local line = Drawing.new("Line")
- line.Visible = true
- line.Transparency = 1
- line.Thickness = 2
- line.Color = getgenv().player_tracers_color
- local connection
- connection = RunService.RenderStepped:Connect(function()
- line.Visible = false
- if player == nil then
- line:Remove()
- connection:Disconnect()
- return
- end
- if player == player_data["player"] then
- return
- end
- if player.TeamColor == player_data["player"].TeamColor then
- return
- end
- local character = player.Character
- if character == nil then
- return
- end
- local root = character:FindFirstChild("HumanoidRootPart")
- if root == nil then
- return
- end
- if (root.Position - player_data["root"].Position).Magnitude fov then
- continue
- end
- if distance_from_cursor > current_distance_from_cursor and closest_to_cursor then
- continue
- end
- local humanoid = character:FindFirstChild("Humanoid")
- if humanoid == nil or humanoid:GetState() == Enum.HumanoidStateType.Dead or humanoid.Health