Roblox Database Logo
  • Home
  • Roblox Scripts
  • Game Codes
  • Roblox Codes
    • Promo Codes
    • Item Codes
    • Music Codes
    • Star Codes
    • Color Codes
  • Best Games
  • Roblox Guides
  • Roblox Tools
  • Home
  • Roblox Scripts
  • Game Codes
  • Roblox Codes
    • Promo Codes
    • Item Codes
    • Music Codes
    • Star Codes
    • Color Codes
  • Best Games
  • Roblox Guides
  • Roblox Tools
Home - Scripts - Trenches Script

Trenches Script

Are you brave enough to fight for your country in the deadliest world war? Set up now your classical rifles and powerful explosives to defend your land against enemy nations with the help of Trenches Script.

This script or code will give you the best tools that you can use to fire up your military forces to easily destroy enemy units and occupy their territories as well. Join different nations and experience an intense 25v25 tactical shooting game that will surely give you goosebumps.

Trenches Script

Aimbot, Melee Aura, Gun Mode, No Reload, Silent Aim

Copy the script below to level up your war games experience. Make sure to use the most effective executor/exploit to make your every battle more challenging and victorious. We have a list of available executors here.

loadstring(game:HttpGet("https://raw.githubusercontent.com/AnomalyRBLX/Database/main/Scripts/Trenches.lua", true))()

Trenches Script Pastebin

--//Declarations
local SilentAim = {
    Enabled = false,
    FOV = false,
    FOVSize = 100,
    Accuracy = 100,
    Target = "Head"
}
local players = game:GetService("Players")
local plr = players.LocalPlayer
local mouse = plr:GetMouse()
local camera = game.Workspace.CurrentCamera


local FOVCircle = Drawing.new("Circle")
FOVCircle.Position = Vector2.new(0, 0)
FOVCircle.Radius = 100
FOVCircle.Color = Color3.fromRGB(255, 255, 255)
FOVCircle.Thickness = 1
FOVCircle.Filled = false
FOVCircle.Visible = false
FOVCircle.Transparency = 1
FOVCircle.NumSides = 50

--//ESP
local ESP = loadstring(game:HttpGet("https://raw.githubusercontent.com/Anomaly-hub/Anomalies-Scripts/main/kiriots%20esp", true))()
ESP.Players = true
ESP.Tracers = false
ESP.Boxes = true
local Lib = loadstring(game:HttpGet("https://raw.githubusercontent.com/AnomalyRBLX/Database/main/Libraries/Jan's%20UI%20Copy.lua", true))();
local window = Lib:CreateWindow("Trenches - Alpha", Vector2.new(492, 440), Enum.KeyCode.RightShift)

local Main = window:CreateTab("Main")
local MS = Main:CreateSector("Silent Aim", "left")

MS:AddToggle("Enabled", SilentAim.Enabled, function(state)
    SilentAim.Enabled = state
end)

MS:AddSlider("Accuracy", 1, 100, 100, 1, function(s)
    SilentAim.Accuracy = s
end)

local bodyParts = {"Head", "HumanoidRootPart"}
MS:AddDropdown("Target", {"Random", "Head", "HumanoidRootPart"}, "Random", false, function(selected)
    SilentAim.Target = selected
end)

MS:AddToggle("FOV Circle", false, function(s)
    SilentAim.FOV = s
    FOVCircle.Visible = s
end)

MS:AddSlider("Size", 10, 100, 500, 1, function(v)
    FOVCircle.Radius = v
    SilentAim.FOVSize = v
end)

function updateFOV()
    FOVCircle.Position = Vector2.new(mouse.X, mouse.Y+36)
end

MS:AddButton("Mod Guns", function()
    for _,v in pairs(game:GetService("Players").LocalPlayer.Backpack:GetDescendants()) do
        if v:IsA("NumberValue") then
            if v.Name == "FireRate" then
                v.Value = 0.01
            elseif v.Name == "ReloadingTime" then
                v.Value = 0.01
            elseif v.Name == "Spread" then
                v.Value = 0
            elseif v.Name == "CameraShake" then
                v.Value = false
            end
        end
    end
end)

local AuraDist = 6
MS:AddSlider("Melee Aura Distance", 1,6,6,1, function(s)
    AuraDist = s
end)

local Meele = false
MS:AddToggle("Melee Aura", false, function(s)
    Meele = s 
    while s and Meele and wait() do
        local plr = game.Players.LocalPlayer
        for _,v in pairs(game:GetService("Players"):GetPlayers()) do
            if v.Character and v.Character:FindFirstChild("HumanoidRootPart") and v.Name ~= plr.Name and v.TeamColor ~= plr.TeamColor then
                print("Sh")
                local check = (v.Character.HumanoidRootPart.Position - plr.Character.HumanoidRootPart.Position).Magnitude
                if check <= AuraDist then
                    print("SH")
                    game:GetService("ReplicatedStorage").MeleeEvent:FireServer(game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Tool"))
                end
            end
        end
    end
end)
MS:AddLabel("Created by Anomaly#2000")

local ES = Main:CreateSector("ESP", "right")
ES:AddToggle("Enabled", false, function(s)
    ESP:Toggle(s)
end)

ES:AddToggle("Boxes", true, function(s)
    ESP.Boxes = s
end)

ES:AddToggle("Tracers", false, function(s)
    ESP.Tracers = s
end)

ES:AddToggle("Names", true, function(s)
    ESP.Names = s
end)

local GPS = Main:CreateSector("Gameplay", "left")
GPS:AddButton("Faster Building", function()
    game.Players.LocalPlayer.Backpack:FindFirstChild("Build"):FindFirstChild("BuildMain"):FindFirstChild("Variables"):FindFirstChild("WorkDelay").Value = 0.01
end)

local BuildAura = false
local work = function()
    local dist = math.huge
    local targ
    local lPlr = game.Players.LocalPlayer.Character.HumanoidRootPart.Position
    for _,v in pairs(game:GetService("Workspace"):FindFirstChild("Structures"):GetChildren()) do
        if string.find(v.Name, "Construction") then
            local check = (v:FindFirstChildWhichIsA("Part").Position - lPlr).Magnitude
            if check < dist then
                targ = v 
                dist = check
            end
        end
    end
    if targ then
        game:GetService("Players").LocalPlayer.Character.Build.Work:FireServer(targ)
    end
end
GPS:AddToggle("Construct Aura", false, function(s)
    BuildAura = s
    if BuildAura then
        while wait(0.2) and BuildAura do
            local buildChar = game.Players.LocalPlayer.Character
            if buildChar then
                if buildChar:FindFirstChild("Build") then
                    work()
                end
            end
        end
    end
end)

local Lag = false
GPS:AddToggle("Lag Server", false, function(s)
    Lag = s
    while wait(1) and Lag do
        for _,v in pairs(game:GetService("Players"):GetPlayers()) do
            if v.Character then
                for s,y in pairs(v.Character:GetDescendants()) do
                    pcall(function()
                        game:GetService("ReplicatedStorage").VisualizeStar:FireServer(v.Character:FindFirstChild("Head"), true)
                    end)
                end
            end
        end
    end
end)

GPS:AddLabel("This will lag you more")
GPS:AddLabel("than it does others")




local MiS = Main:CreateSector("Misc", "right")
MiS:AddButton("Join Discord", function()
    local request = request or http_request or (syn and syn.request)
    if not request then return end
    local start = 6463
    local invCode = 'ceE7jGFgkg'
    for i = start-10, start+1 do
        spawn(function()
            pcall(function()
                request({Url = "http://127.0.0.1:"..tostring(i).."/rpc?v=1",Method = "POST",Headers = {["Content-Type"] = "application/json",["Origin"] = "https://discord.com"},Body = game:GetService("HttpService"):JSONEncode({["cmd"] = "INVITE_BROWSER",["nonce"] = game:GetService("HttpService"):GenerateGUID(false),["args"] = {["invite"] = {["code"] = invCode,},["code"] = invCode}})})
            end)
        end)
    end
end)

MiS:AddButton("Copy Invite", function()
    setclipboard("https://discord.gg/ceE7jGFgkg")
end)

MiS:AddButton("ServerHop", function()
    local x = {}
    for _, v in ipairs(game:GetService("HttpService"):JSONDecode(game:HttpGetAsync("https://games.roblox.com/v1/games/" .. game.PlaceId .. "/servers/Public?sortOrder=Asc&limit=100")).data) do
        if type(v) == "table" and v.maxPlayers > v.playing and v.id ~= game.JobId then
            x[#x + 1] = v.id
        end
    end
    if #x > 0 then
        game:GetService("TeleportService"):TeleportToPlaceInstance(game.PlaceId, x[math.random(1, #x)])
    else
        print("Serverhop failed")
    end
end)

MiS:AddButton("Rejoin", function()
    game:GetService("TeleportService"):Teleport(game.PlaceId, game:GetService("Players").LocalPlayer)
end)

MiS:AddButton("Fullbright", function()
    loadstring(game:HttpGet("https://raw.githubusercontent.com/AnomalyRBLX/Database/main/External/fullbright.lua", true))()
end)

MiS:AddKeybind("Toggle UI", Enum.KeyCode.RightShift, function(v) window.hidebutton = v end, function()end)





--//Silent Aim
local function ClosestPlayerToMouse()
    local target = nil
    local dist = math.huge
    for i,v in pairs(players:GetPlayers()) do
        if v.Name ~= plr.Name then
            if v.Character and v.Character:FindFirstChild("Humanoid") and v.Character.Humanoid.Health ~= 0 and v.Character:FindFirstChild("HumanoidRootPart") and v.TeamColor ~= plr.TeamColor then
                local screenpoint = camera:WorldToScreenPoint(v.Character.HumanoidRootPart.Position)
                local check = (Vector2.new(mouse.X,mouse.Y)-Vector2.new(screenpoint.X,screenpoint.Y)).magnitude
                if check < dist then
                    if SilentAim.FOV then
                        if check <= SilentAim.FOVSize then
                            target  = v
                            dist = check
                        end
                    else
                        target = v
                        dist = check
                    end
                end
            end
        end
    end
    return target 
end

local mt = getrawmetatable(game)
local namecall = mt.__namecall
setreadonly(mt,false)

local OldNamecall
OldNamecall = hookmetamethod(game, "__namecall", function(self, ...)
    local args = {...}
    local method = getnamecallmethod()
    if tostring(self) == "ShootEvent" and method == "FireServer" then
        local player = ClosestPlayerToMouse()
        if player and SilentAim.Enabled and SilentAim.Accuracy >= math.random(1,100) then
            local targ
            if SilentAim.Target == "Random" then
                targ = bodyParts[math.random(1,2)]
            else 
                targ = SilentAim.Target
            end
            args[5] = player.Character[targ]
            args[6] = player.Character[targ].Position
        end
        return self.FireServer(self, unpack(args))
    end 
return OldNamecall(self, ...)
end)

game:GetService("RunService").Heartbeat:Connect(updateFOV)
-- Gui to Lua
-- Version: 3.2

-- Instances:

local ScreenGui = Instance.new("ScreenGui")
local main = Instance.new("Frame")
local label = Instance.new("TextLabel")
local Hitbox = Instance.new("TextButton")
local VisualGUI = Instance.new("TextButton")
local Fly = Instance.new("TextButton")

--Properties:

ScreenGui.Parent = game.CoreGui

main.Name = "main"
main.Parent = ScreenGui
main.BackgroundColor3 = Color3.fromRGB(0, 170, 0)
main.BorderColor3 = Color3.fromRGB(255, 0, 0)
main.Position = UDim2.new(0.609401703, 0, 0.570754707, 0)
main.Size = UDim2.new(0, 355, 0, 207)
main.Active = true
main.Draggable = true

label.Name = "label"
label.Parent = main
label.BackgroundColor3 = Color3.fromRGB(170, 85, 0)
label.Size = UDim2.new(0, 355, 0, 48)
label.Font = Enum.Font.SourceSans
label.Text = "Trench War GUI made by Penguin"
label.TextColor3 = Color3.fromRGB(0, 0, 0)
label.TextScaled = true
label.TextSize = 14.000
label.TextWrapped = true

Hitbox.Name = "Hitbox"
Hitbox.Parent = main
Hitbox.BackgroundColor3 = Color3.fromRGB(170, 170, 170)
Hitbox.Position = UDim2.new(0.0478873253, 0, 0.280193239, 0)
Hitbox.Size = UDim2.new(0, 146, 0, 53)
Hitbox.Font = Enum.Font.SourceSans
Hitbox.Text = "Hitbox"
Hitbox.TextColor3 = Color3.fromRGB(0, 0, 0)
Hitbox.TextSize = 40.000
Hitbox.MouseButton1Down:connect(function()
	_G.HeadSize = 10

	_G.Disabled = true

	game:GetService('RunService').RenderStepped:connect(function()
		if _G.Disabled then
			for i,v in next, game:GetService('Players'):GetPlayers() do
				if v.Name ~= game:GetService('Players').LocalPlayer.Name then
					pcall(function()
						v.Character.HumanoidRootPart.Size = Vector3.new(_G.HeadSize,_G.HeadSize,_G.HeadSize)
						v.Character.HumanoidRootPart.Transparency = 0.7
						v.Character.HumanoidRootPart.BrickColor = BrickColor.new("Really black")
						v.Character.HumanoidRootPart.Material = "Neon"
						v.Character.HumanoidRootPart.CanCollide = false
					end)
				end
			end
		end
	end)
end)

VisualGUI.Name = "VisualGUI"
VisualGUI.Parent = main
VisualGUI.BackgroundColor3 = Color3.fromRGB(170, 170, 170)
VisualGUI.Position = UDim2.new(0.523943663, 0, 0.280193239, 0)
VisualGUI.Size = UDim2.new(0, 157, 0, 53)
VisualGUI.Font = Enum.Font.SourceSans
VisualGUI.Text = "VisualGUI"
VisualGUI.TextColor3 = Color3.fromRGB(0, 0, 0)
VisualGUI.TextSize = 40.000
VisualGUI.TextWrapped = true
VisualGUI.MouseButton1Down:connect(function()
	-- press v to use aimbot and press q to disable aimbot
	loadstring(game:HttpGet("https://rentry.co/kd9ehtgp/raw", true))()

	PLAYER  = game.Players.LocalPlayer
	MOUSE   = PLAYER:GetMouse()
	CC      = game.Workspace.CurrentCamera

	ENABLED      = false
	ESP_ENABLED  = false

	_G.FREE_FOR_ALL = false

	_G.BIND        = 118
	_G.ESP_BIND    = 49
	_G.CHANGE_AIM  = 'q'

	_G.AIM_AT = 'Head'

	wait(1)

	function GetNearestPlayerToMouse()
		local PLAYERS      = {}
		local PLAYER_HOLD  = {}
		local DISTANCES    = {}
		for i, v in pairs(game.Players:GetPlayers()) do
			if v ~= PLAYER then
				table.insert(PLAYERS, v)
			end
		end
		for i, v in pairs(PLAYERS) do
			if _G.FREE_FOR_ALL == false then
				if v and (v.Character) ~= nil and v.TeamColor ~= PLAYER.TeamColor then
					local AIM = v.Character:FindFirstChild(_G.AIM_AT)
					if AIM ~= nil then
						local DISTANCE                 = (AIM.Position - game.Workspace.CurrentCamera.CoordinateFrame.p).magnitude
						local RAY                      = Ray.new(game.Workspace.CurrentCamera.CoordinateFrame.p, (MOUSE.Hit.p - CC.CoordinateFrame.p).unit * DISTANCE)
						local HIT,POS                  = game.Workspace:FindPartOnRay(RAY, game.Workspace)
						local DIFF                     = math.floor((POS - AIM.Position).magnitude)
						PLAYER_HOLD[v.Name .. i]       = {}
						PLAYER_HOLD[v.Name .. i].dist  = DISTANCE
						PLAYER_HOLD[v.Name .. i].plr   = v
						PLAYER_HOLD[v.Name .. i].diff  = DIFF
						table.insert(DISTANCES, DIFF)
					end
				end
			elseif _G.FREE_FOR_ALL == true then
				local AIM = v.Character:FindFirstChild(_G.AIM_AT)
				if AIM ~= nil then
					local DISTANCE                 = (AIM.Position - game.Workspace.CurrentCamera.CoordinateFrame.p).magnitude
					local RAY                      = Ray.new(game.Workspace.CurrentCamera.CoordinateFrame.p, (MOUSE.Hit.p - CC.CoordinateFrame.p).unit * DISTANCE)
					local HIT,POS                  = game.Workspace:FindPartOnRay(RAY, game.Workspace)
					local DIFF                     = math.floor((POS - AIM.Position).magnitude)
					PLAYER_HOLD[v.Name .. i]       = {}
					PLAYER_HOLD[v.Name .. i].dist  = DISTANCE
					PLAYER_HOLD[v.Name .. i].plr   = v
					PLAYER_HOLD[v.Name .. i].diff  = DIFF
					table.insert(DISTANCES, DIFF)
				end
			end
		end

		if unpack(DISTANCES) == nil then
			return false
		end

		local L_DISTANCE = math.floor(math.min(unpack(DISTANCES)))
		if L_DISTANCE > 20 then
			return false
		end

		for i, v in pairs(PLAYER_HOLD) do
			if v.diff == L_DISTANCE then
				return v.plr
			end
		end
		return false
	end

	GUI_MAIN                           = Instance.new('ScreenGui', game.CoreGui)
	GUI_TARGET                         = Instance.new('TextLabel', GUI_MAIN)
	GUI_AIM_AT                         = Instance.new('TextLabel', GUI_MAIN)

	GUI_MAIN.Name                      = 'AIMBOT'

	GUI_TARGET.Size                    = UDim2.new(0,200,0,30)
	GUI_TARGET.BackgroundTransparency  = 0.5
	GUI_TARGET.BackgroundColor         = BrickColor.new('Fossil')
	GUI_TARGET.BorderSizePixel         = 0
	GUI_TARGET.Position                = UDim2.new(0.5,-100,0,0)
	GUI_TARGET.Text                    = 'AIMBOT : OFF'
	GUI_TARGET.TextColor3              = Color3.new(1,1,1)
	GUI_TARGET.TextStrokeTransparency  = 1
	GUI_TARGET.TextWrapped             = true
	GUI_TARGET.FontSize                = 'Size24'
	GUI_TARGET.Font                    = 'SourceSansBold'

	GUI_AIM_AT.Size                    = UDim2.new(0,200,0,20)
	GUI_AIM_AT.BackgroundTransparency  = 0.5
	GUI_AIM_AT.BackgroundColor         = BrickColor.new('Fossil')
	GUI_AIM_AT.BorderSizePixel         = 0
	GUI_AIM_AT.Position                = UDim2.new(0.5,-100,0,30)
	GUI_AIM_AT.Text                    = 'AIMING : HEAD'
	GUI_AIM_AT.TextColor3              = Color3.new(1,1,1)
	GUI_AIM_AT.TextStrokeTransparency  = 1
	GUI_AIM_AT.TextWrapped             = true
	GUI_AIM_AT.FontSize                = 'Size18'
	GUI_AIM_AT.Font                    = 'SourceSansBold'

	local TRACK = false

	function CREATE(BASE, TEAM)
		local ESP_MAIN                   = Instance.new('BillboardGui', PLAYER.PlayerGui)
		local ESP_DOT                    = Instance.new('Frame', ESP_MAIN)
		local ESP_NAME                   = Instance.new('TextLabel', ESP_MAIN)

		ESP_MAIN.Name                    = 'ESP'
		ESP_MAIN.Adornee                 = BASE
		ESP_MAIN.AlwaysOnTop             = true
		ESP_MAIN.ExtentsOffset           = Vector3.new(0, 1, 0)
		ESP_MAIN.Size                    = UDim2.new(0, 5, 0, 5)

		ESP_DOT.Name                     = 'DOT'
		ESP_DOT.BackgroundColor          = BrickColor.new('Bright red')
		ESP_DOT.BackgroundTransparency   = 0.3
		ESP_DOT.BorderSizePixel          = 0
		ESP_DOT.Position                 = UDim2.new(-0.5, 0, -0.5, 0)
		ESP_DOT.Size                     = UDim2.new(2, 0, 2, 0)
		ESP_DOT.Visible                  = true
		ESP_DOT.ZIndex                   = 10

		ESP_NAME.Name                    = 'NAME'
		ESP_NAME.BackgroundColor3        = Color3.new(255, 255, 255)
		ESP_NAME.BackgroundTransparency  = 1
		ESP_NAME.BorderSizePixel         = 0
		ESP_NAME.Position                = UDim2.new(0, 0, 0, -40)
		ESP_NAME.Size                    = UDim2.new(1, 0, 10, 0)
		ESP_NAME.Visible                 = true
		ESP_NAME.ZIndex                  = 10
		ESP_NAME.Font                    = 'ArialBold'
		ESP_NAME.FontSize                = 'Size14'
		ESP_NAME.Text                    = BASE.Parent.Name:upper()
		ESP_NAME.TextColor               = BrickColor.new('Bright red')
	end

	function CLEAR()
		for _,v in pairs(PLAYER.PlayerGui:children()) do
			if v.Name == 'ESP' and v:IsA('BillboardGui') then
				v:Destroy()
			end
		end
	end

	function FIND()
		CLEAR()
		TRACK = true
		spawn(function()
			while wait() do
				if TRACK then
					CLEAR()
					for i,v in pairs(game.Players:GetChildren()) do
						if v.Character and v.Character:FindFirstChild('Head') then
							if _G.FREE_FOR_ALL == false then
								if v.TeamColor ~= PLAYER.TeamColor then
									if v.Character:FindFirstChild('Head') then
										CREATE(v.Character.Head, true)
									end
								end
							else
								if v.Character:FindFirstChild('Head') then
									CREATE(v.Character.Head, true)
								end
							end
						end
					end
				end
			end
			wait(1)
		end)
	end

	MOUSE.KeyDown:connect(function(KEY)
		KEY = KEY:lower():byte()
		if KEY == _G.BIND then
			ENABLED = true
		end
	end)

	MOUSE.KeyUp:connect(function(KEY)
		KEY = KEY:lower():byte()
		if KEY == _G.BIND then
			ENABLED = false
		end
	end)

	MOUSE.KeyDown:connect(function(KEY)
		KEY = KEY:lower():byte()
		if KEY == _G.ESP_BIND then
			if ESP_ENABLED == false then
				FIND()
				ESP_ENABLED = true
				print('ESP : ON')
			elseif ESP_ENABLED == true then
				wait()
				CLEAR()
				TRACK = false
				ESP_ENABLED = true
				print('ESP : OFF')
			end
		end
	end)

	MOUSE.KeyDown:connect(function(KEY)
		if KEY == _G.CHANGE_AIM then
			if _G.AIM_AT == 'Head' then
				_G.AIM_AT = 'Torso'
				GUI_AIM_AT.Text = 'AIMING : TORSO'
			elseif _G.AIM_AT == 'Torso' then
				_G.AIM_AT = 'Head'
				GUI_AIM_AT.Text = 'AIMING : HEAD'
			end
		end
	end)

	game:GetService('RunService').RenderStepped:connect(function()
		if ENABLED then
			local TARGET = GetNearestPlayerToMouse()
			if (TARGET ~= false) then
				local AIM = TARGET.Character:FindFirstChild(_G.AIM_AT)
				if AIM then
					CC.CoordinateFrame = CFrame.new(CC.CoordinateFrame.p, AIM.CFrame.p)
				end
				GUI_TARGET.Text = 'AIMBOT : '.. TARGET.Name:sub(1, 5)
			else
				GUI_TARGET.Text = 'AIMBOT : OFF'
			end
		end
	end)

	repeat
		wait()
		if ESP_ENABLED == true then
			FIND()
		end
	until ESP_ENABLED == false
	wait()
	_G.FREE_FOR_ALL = false
	_G.BIND = 118 -- LEFT ALT
	_G.ESP_BIND = 49 -- RIGHT CTRL
end)

Fly.Name = "Fly"
Fly.Parent = main
Fly.BackgroundColor3 = Color3.fromRGB(170, 170, 170)
Fly.Position = UDim2.new(0.0478873253, 0, 0.657004833, 0)
Fly.Size = UDim2.new(0, 146, 0, 50)
Fly.Font = Enum.Font.SourceSans
Fly.Text = "Fly"
Fly.TextColor3 = Color3.fromRGB(0, 0, 0)
Fly.TextSize = 40.000
Fly.MouseButton1Down:connect(function()
	--ARCEUS X FLY V2 SCRIPT BY me_ozoneYT
	loadstring("\108\111\97\100\115\116\114\105\110\103\40\103\97\109\101\58\72\116\116\112\71\101\116\40\40\39\104\116\116\112\115\58\47\47\103\105\115\116\46\103\105\116\104\117\98\117\115\101\114\99\111\110\116\101\110\116\46\99\111\109\47\109\101\111\122\111\110\101\89\84\47\98\102\48\51\55\100\102\102\57\102\48\97\55\48\48\49\55\51\48\52\100\100\100\54\55\102\100\99\100\51\55\48\47\114\97\119\47\101\49\52\101\55\52\102\52\50\53\98\48\54\48\100\102\53\50\51\51\52\51\99\102\51\48\98\55\56\55\48\55\52\101\98\51\99\53\100\50\47\97\114\99\101\117\115\37\50\53\50\48\120\37\50\53\50\48\102\108\121\37\50\53\50\48\50\37\50\53\50\48\111\98\102\108\117\99\97\116\111\114\39\41\44\116\114\117\101\41\41\40\41\10\10")()
end)
--- GAME: https://www.roblox.com/games/6654918151/Trench-War
local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/xHeptc/Kavo-UI-Library/main/source.lua"))()
local Window = Library.CreateLib("Trench War V1.2", "Sentinel")
--- HIT BOXER
local Hitbox = Window:NewTab("HitBoxer")
local Hitbox = Hitbox:NewSection("Hitbox Made by Platon!")
Hitbox:NewButton("Hitbox", "This Hitbox is good!", function()
local Player = game:GetService("Players").LocalPlayer
game:GetService("RunService").Stepped:connect(function()
    for i,v in pairs (game:GetService("Players"):GetChildren()) do
        if v.TeamColor ~= Player.TeamColor and v.Name ~= Player.Name then
            v.Character.HumanoidRootPart.Size = Vector3.new(5,8,5)
            v.Character.HumanoidRootPart.Material = "Neon"
            v.Character.HumanoidRootPart.BrickColor = BrickColor.new("Really red")
            v.Character.HumanoidRootPart.Transparency = 0.5
        elseif v.TeamColor ~= Player.TeamColor and v.Name == "Pet_AtorAltAccount" then
            v.Character.HumanoidRootPart.Size = Vector3.new(3,5,3)
            v.Character.HumanoidRootPart.Material = "Neon"
            v.Character.HumanoidRootPart.BrickColor = BrickColor.new("New Yeller")
            v.Character.HumanoidRootPart.Transparency = 0.5
        end
    end
end)
end)
--- PLAYER SCRIPTS
local Player = Window:NewTab("Player")
local Player = Player:NewSection("This is the Cheats for your player :)")
Player:NewSlider("WalkSpeed", "Changes your walkspeed *YOU MAY GET BANNED!*", 250, 16, function(s) -- 500 (MaxValue) | 0 (MinValue)
    game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = s
end)
Player:NewSlider("JumpPower", "Changes your JumpPower *YOU MAY GET BANNED!*", 250, 50, function(s) -- 500 (MaxValue) | 0 (MinValue)
    game.Players.LocalPlayer.Character.Humanoid.JumpPower = s
end)
Player:NewButton("Fly", "This fly was for Arceus X but we made it work for PC : )", function()
game:GetService("StarterGui"):SetCore("SendNotification",{
                Title = "Credits";
                Text = "Modified By Tubers93 *Also Press Fly again to UnFly!*";
                Duration = 3.5;
            })
-- Gui to Lua
-- Version: 3.2

-- Instances:

local main = Instance.new("ScreenGui")
local Frame = Instance.new("Frame")
local up = Instance.new("TextButton")
local down = Instance.new("TextButton")
local onof = Instance.new("TextButton")
local TextLabel = Instance.new("TextLabel")
local plus = Instance.new("TextButton")
local speed = Instance.new("TextLabel")
local mine = Instance.new("TextButton")

--Properties:

main.Name = "main"
main.Parent = game.CoreGui
main.ZIndexBehavior = Enum.ZIndexBehavior.Sibling

Frame.Parent = main
Frame.BackgroundColor3 = Color3.fromRGB(163, 255, 137)
Frame.BorderColor3 = Color3.fromRGB(103, 221, 213)
Frame.Position = UDim2.new(0.100320168, 0, 0.379746825, 0)
Frame.Size = UDim2.new(0, 190, 0, 57)

up.Name = "up"
up.Parent = Frame
up.BackgroundColor3 = Color3.fromRGB(79, 255, 152)
up.Size = UDim2.new(0, 44, 0, 28)
up.Font = Enum.Font.SourceSans
up.Text = "UP"
up.TextColor3 = Color3.fromRGB(0, 0, 0)
up.TextSize = 14.000

down.Name = "down"
down.Parent = Frame
down.BackgroundColor3 = Color3.fromRGB(215, 255, 121)
down.Position = UDim2.new(0, 0, 0.491228074, 0)
down.Size = UDim2.new(0, 44, 0, 28)
down.Font = Enum.Font.SourceSans
down.Text = "DOWN"
down.TextColor3 = Color3.fromRGB(0, 0, 0)
down.TextSize = 14.000

onof.Name = "onof"
onof.Parent = Frame
onof.BackgroundColor3 = Color3.fromRGB(255, 249, 74)
onof.Position = UDim2.new(0.702823281, 0, 0.491228074, 0)
onof.Size = UDim2.new(0, 56, 0, 28)
onof.Font = Enum.Font.SourceSans
onof.Text = "fly"
onof.TextColor3 = Color3.fromRGB(0, 0, 0)
onof.TextSize = 14.000

TextLabel.Parent = Frame
TextLabel.BackgroundColor3 = Color3.fromRGB(242, 60, 255)
TextLabel.Position = UDim2.new(0.469327301, 0, 0, 0)
TextLabel.Size = UDim2.new(0, 100, 0, 28)
TextLabel.Font = Enum.Font.SourceSans
TextLabel.Text = "Fly Gui V2"
TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
TextLabel.TextScaled = true
TextLabel.TextSize = 14.000
TextLabel.TextWrapped = true

plus.Name = "plus"
plus.Parent = Frame
plus.BackgroundColor3 = Color3.fromRGB(133, 145, 255)
plus.Position = UDim2.new(0.231578946, 0, 0, 0)
plus.Size = UDim2.new(0, 45, 0, 28)
plus.Font = Enum.Font.SourceSans
plus.Text = "+"
plus.TextColor3 = Color3.fromRGB(0, 0, 0)
plus.TextScaled = true
plus.TextSize = 14.000
plus.TextWrapped = true

speed.Name = "speed"
speed.Parent = Frame
speed.BackgroundColor3 = Color3.fromRGB(255, 85, 0)
speed.Position = UDim2.new(0.468421042, 0, 0.491228074, 0)
speed.Size = UDim2.new(0, 44, 0, 28)
speed.Font = Enum.Font.SourceSans
speed.Text = "1"
speed.TextColor3 = Color3.fromRGB(0, 0, 0)
speed.TextScaled = true
speed.TextSize = 14.000
speed.TextWrapped = true

mine.Name = "mine"
mine.Parent = Frame
mine.BackgroundColor3 = Color3.fromRGB(123, 255, 247)
mine.Position = UDim2.new(0.231578946, 0, 0.491228074, 0)
mine.Size = UDim2.new(0, 45, 0, 29)
mine.Font = Enum.Font.SourceSans
mine.Text = "-"
mine.TextColor3 = Color3.fromRGB(0, 0, 0)
mine.TextScaled = true
mine.TextSize = 14.000
mine.TextWrapped = true

speeds = 1

local speaker = game:GetService("Players").LocalPlayer

local chr = game.Players.LocalPlayer.Character
local hum = chr and chr:FindFirstChildWhichIsA("Humanoid")

nowe = false

Frame.Active = true -- main = gui
Frame.Draggable = true

onof.MouseButton1Down:connect(function()

	if nowe == true then
		nowe = false

		speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Climbing,true)
		speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.FallingDown,true)
		speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Flying,true)
		speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Freefall,true)
		speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.GettingUp,true)
		speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping,true)
		speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Landed,true)
		speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Physics,true)
		speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.PlatformStanding,true)
		speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll,true)
		speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Running,true)
		speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.RunningNoPhysics,true)
		speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated,true)
		speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.StrafingNoPhysics,true)
		speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Swimming,true)
		speaker.Character.Humanoid:ChangeState(Enum.HumanoidStateType.RunningNoPhysics)
	else 
		nowe = true



		for i = 1, speeds do
			spawn(function()

				local hb = game:GetService("RunService").Heartbeat	


				tpwalking = true
				local chr = game.Players.LocalPlayer.Character
				local hum = chr and chr:FindFirstChildWhichIsA("Humanoid")
				while tpwalking and hb:Wait() and chr and hum and hum.Parent do
					if hum.MoveDirection.Magnitude > 0 then
						chr:TranslateBy(hum.MoveDirection)
					end
				end

			end)
		end
		game.Players.LocalPlayer.Character.Animate.Disabled = true
		local Char = game.Players.LocalPlayer.Character
		local Hum = Char:FindFirstChildOfClass("Humanoid") or Char:FindFirstChildOfClass("AnimationController")

		for i,v in next, Hum:GetPlayingAnimationTracks() do
			v:AdjustSpeed(0)
		end
		speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Climbing,false)
		speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.FallingDown,false)
		speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Flying,false)
		speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Freefall,false)
		speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.GettingUp,false)
		speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping,false)
		speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Landed,false)
		speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Physics,false)
		speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.PlatformStanding,false)
		speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll,false)
		speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Running,false)
		speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.RunningNoPhysics,false)
		speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated,false)
		speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.StrafingNoPhysics,false)
		speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Swimming,false)
		speaker.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Swimming)
	end




	
		local plr = game.Players.LocalPlayer
		local UpperTorso = plr.Character.LowerTorso
		local flying = true
		local deb = true
		local ctrl = {f = 0, b = 0, l = 0, r = 0}
		local lastctrl = {f = 0, b = 0, l = 0, r = 0}
		local maxspeed = 50
		local speed = 0


		local bg = Instance.new("BodyGyro", UpperTorso)
		bg.P = 9e4
		bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
		bg.cframe = UpperTorso.CFrame
		local bv = Instance.new("BodyVelocity", UpperTorso)
		bv.velocity = Vector3.new(0,0.1,0)
		bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
		if nowe == true then
			plr.Character.Humanoid.PlatformStand = true
		end
		while nowe == true or game:GetService("Players").LocalPlayer.Character.Humanoid.Health == 0 do
			wait()

			if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
				speed = speed+.5+(speed/maxspeed)
				if speed > maxspeed then
					speed = maxspeed
				end
			elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
				speed = speed-1
				if speed < 0 then
					speed = 0
				end
			end
			if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
				bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
				lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
			elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
				bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
			else
				bv.velocity = Vector3.new(0,0,0)
			end

			bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
		end
		ctrl = {f = 0, b = 0, l = 0, r = 0}
		lastctrl = {f = 0, b = 0, l = 0, r = 0}
		speed = 0
		bg:Destroy()
		bv:Destroy()
		plr.Character.Humanoid.PlatformStand = false
		game.Players.LocalPlayer.Character.Animate.Disabled = false
		tpwalking = false



	





end)


up.MouseButton1Down:connect(function()
	game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0,2,0)
	
end)


down.MouseButton1Down:connect(function()

	game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0,-2,0)

end)


game:GetService("Players").LocalPlayer.CharacterAdded:Connect(function(char)
	wait(0.7)
	game.Players.LocalPlayer.Character.Humanoid.PlatformStand = false
	game.Players.LocalPlayer.Character.Animate.Disabled = false

end)


plus.MouseButton1Down:connect(function()
	speeds = speeds + 1
	speed.Text = speeds
	if nowe == true then
		

	tpwalking = false
	for i = 1, speeds do
		spawn(function()

			local hb = game:GetService("RunService").Heartbeat	


			tpwalking = true
			local chr = game.Players.LocalPlayer.Character
			local hum = chr and chr:FindFirstChildWhichIsA("Humanoid")
			while tpwalking and hb:Wait() and chr and hum and hum.Parent do
				if hum.MoveDirection.Magnitude > 0 then
					chr:TranslateBy(hum.MoveDirection)
				end
			end

		end)
		end
		end
end)
mine.MouseButton1Down:connect(function()
	if speeds == 1 then
		speed.Text = 'can not be less than 1'
		wait(1)
		speed.Text = speeds
	else
	speeds = speeds - 1
		speed.Text = speeds
		if nowe == true then
	tpwalking = false
	for i = 1, speeds do
		spawn(function()

			local hb = game:GetService("RunService").Heartbeat	


			tpwalking = true
			local chr = game.Players.LocalPlayer.Character
			local hum = chr and chr:FindFirstChildWhichIsA("Humanoid")
			while tpwalking and hb:Wait() and chr and hum and hum.Parent do
				if hum.MoveDirection.Magnitude > 0 then
					chr:TranslateBy(hum.MoveDirection)
				end
			end

		end)
		end
		end
		end
end)
end)

How To Use Trenches Script

Follow these simple steps on how to use the Trenches Script:

See also  Trade Tower Script

1. Choose an effective executor/exploit from the list below (Free & Paid)

2. Download the executor you prefer. We have our list here.

3. Launch the Roblox game first, then the executor

4. When both the Roblox game and executor are open, press Inject or Attach (it depends on what executor you are using)

5. Paste the script you want to use

6. Press the Execute or Play button (again it depends on what executor you are using)

7. That’s all, enjoy using the Trenches script GUI

About The Trenches Script

The Roblox Trenches Script is a set of unique codes that allows the user to have auto-aim features to become more victorious in every world war you join in. With its efficient algorithms and instinctive interface, it is very easy to use even if you are a newbie player or an experienced player.

Trenches Script

A truly impressive tool for success in every Roblox game you will be part of.

By using the best script of the game, you now have an advantage over other players in terms of classical rifles and other useful equipment to score the highest kills in the game. It also boosts your cash earnings to purchase more high-powered weapons throughout the game.

If you are looking for the latest Trenches Codes to power up your historical war experience, you can collect them here.

Always remember that all kinds of game scripts are illegal and may violate the Roblox Terms of Service, resulting in an account banning or other punishments. Be careful when using the script to avoid any game trouble while playing Roblox.

See also  Bedwars Script

So what are you waiting for? Download the appropriate script of the game and be part of the deadliest world war in Trenches today.

Another Similar Game :

Trenches CodesTrenches Codes

Leave a Comment Cancel reply

Promo Codes

Get your hands on exclusive cosmetics, in-game currency, and special bonuses! Redeem our extensive list of Roblox promo codes and stay ahead of the game.

FREE ITEMS
PROMO CODES
STAR CODES

Game Codes

Unlock exclusive in-game perks, boost your stats, and get an edge in your favorite Roblox games with our collection of verified and non expired game codes.

VIEW ALL
GENRES
POPULAR CODES

Items Codes

Customize your Roblox avatar to the max! Browse our thousands of collection of item codes to unlock unique hats, accessories, gear, and many more.

VIEW ALL
CATEGORY
POPULAR ITEMS

Music Codes

Jam out to your favorite tunes in Roblox! Discover music codes for the latest hits and timeless classics to personalize your in-game experience.

VIEW ALL
STYLE
ARTIST

Best Games

Looking for the hottest Roblox games? Explore our curated recommendations, discover hidden gems, and find your next gaming obsession.

BEST GAMES
THEMES
POPULAR GAMES

Roblox Guides

Level up your Roblox knowledge! Access in-depth guides, powerful tools, and valuable resources to enhance your gameplay and creation skills.

VIEW ALL
GAMES WIKI
ERRORS

Tools

Tap into the Roblox community! Find player-created tools, expert guides, and collaborative resources to elevate your Roblox journey.

VIEW ALL
USERNAME GENERATOR
EXECUTOR

Roblox Scripts

Unlock hidden potential, customize your gameplay, and push the limits of your favorite Roblox game with our powerful script collection.

VIEW ALL
GENRE
POPULAR SCRIPTS
Roblox Database Logo

Roblox Database is your all-in-one source for anything and everything related to Roblox.

Whether you’re looking for the latest game codes, item codes, or promo codes or need some scripting guidance, we’ve got you covered.

Facebook-f Twitter Youtube Instagram Pinterest
Quick Links
  • About
  • Contact
  • Tools
  • Privacy Policy
  • Terms of Service
  • Copyright Policy
Menu
  • Home
  • Roblox Scripts
  • Game Codes
  • Roblox Codes
    • Promo Codes
    • Item Codes
    • Music Codes
    • Star Codes
    • Color Codes
  • Best Games
  • Roblox Guides
  • Roblox Tools
  • Home
  • Roblox Scripts
  • Game Codes
  • Roblox Codes
    • Promo Codes
    • Item Codes
    • Music Codes
    • Star Codes
    • Color Codes
  • Best Games
  • Roblox Guides
  • Roblox Tools
Download
chrome logo
  • Email: robloxdatabase23@gmail.com
  • Android : Coming Soon
  • IOS : Coming Soon

© 2025 All Rights Reserved.