local Lighting = game:GetService("Lighting") for _, child in pairs(Lighting:GetChildren()) do child:Destroy() end local atmosphere = Instance.new("Atmosphere") atmosphere.Density = 0.35 atmosphere.Offset = 0.2 atmosphere.Color = Color3.fromRGB(199, 170, 140) atmosphere.Decay = Color3.fromRGB(80, 60, 50) atmosphere.Glare = 0.1 atmosphere.Haze = 4 atmosphere.Parent = Lighting local dof = Instance.new("DepthOfFieldEffect") dof.FarIntensity = 0.1 dof.FocusDistance = 0 dof.InFocusRadius = 65 dof.NearIntensity = 0.75 dof.Parent = Lighting local bloom = Instance.new("BloomEffect") bloom.Intensity = 0.4 bloom.Size = 24 bloom.Threshold = 0.95 bloom.Parent = Lighting local sunrays = Instance.new("SunRaysEffect") sunrays.Intensity = 0.08 sunrays.Spread = 0.5 sunrays.Parent = Lighting Lighting.Ambient = Color3.fromRGB(90, 80, 75) Lighting.OutdoorAmbient = Color3.fromRGB(152, 78, 66) Lighting.Brightness = 2.2 Lighting.ShadowSoftness = 0.35 Lighting.GeographicLatitude = -20 local map = workspace:WaitForChild("Map") local buttons = map.Tower.Traps.buttons local miscObjects = map.Tower.MiscObjects local toDestroy = { buttons:FindFirstChild("Blowup"), buttons:FindFirstChild("BreakJoints"), buttons:FindFirstChild("Hurt100Brick"), buttons:FindFirstChild("Hurt35Brick"), buttons:FindFirstChild("Hurt15Brick"), miscObjects.sawtrapmap:FindFirstChild("Saw"), miscObjects:FindFirstChild("redblobthing"), miscObjects:FindFirstChild("Sign"), map.secret:FindFirstChild("Truss"), miscObjects.Playground["Tube Slide"].slideholderrrr.slidentry:FindFirstChild("TouchInterest"), } for _, inst in pairs(toDestroy) do if inst then inst:Destroy() end end local slideEntry = miscObjects.Playground["Tube Slide"].slideholderrrr.slidentry if slideEntry then slideEntry.CanCollide = false end local truss = Instance.new("TrussPart") truss.Size = Vector3.new(2, 30.766, 2) truss.Position = Vector3.new(701.2, 2379.076, 244) truss.Transparency = 1 truss.Anchored = true truss.Parent = workspace local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UserInput = game:GetService("UserInputService") local RepStorage = game:GetService("ReplicatedStorage") local Camera = workspace.CurrentCamera local LocalPlayer = Players.LocalPlayer local Config = { SilentAim = true, FOV = 300, HitPart = "Head", ShowCircle = true, Wallbang = true, } local Modules = RepStorage:WaitForChild("Modules") local BulletHandler = require(Modules:WaitForChild("BulletHandler")) local ActiveCast = require(RepStorage.Modules.FastCastRedux.ActiveCast) local ReloadRemote = RepStorage.Remotes.Reload local circle = Drawing.new("Circle") circle.Visible = Config.ShowCircle circle.Thickness = 2 circle.NumSides = 100 circle.Radius = Config.FOV circle.Filled = false circle.Transparency = 1 circle.Color = Color3.fromRGB(0, 255, 0) local function getClosestTarget() local closest, shortest = nil, Config.FOV local mousePos = UserInput:GetMouseLocation() for _, plr in pairs(Players:GetPlayers()) do if plr == LocalPlayer or not plr.Character then continue end local part = plr.Character:FindFirstChild(Config.HitPart) if not part then continue end local screen, onScreen = Camera:WorldToViewportPoint(part.Position) if not onScreen then continue end local dist = (Vector2.new(screen.X, screen.Y) - mousePos).Magnitude if dist < shortest then shortest = dist closest = part end end return closest end local function getAmmo(tool) local current = tool:GetAttribute("CurrentAmmo") or tool:GetAttribute("Ammo") or tool:GetAttribute("Bullets") local max = tool:GetAttribute("MaxAmmo") or tool:GetAttribute("MagSize") or tool:GetAttribute("MaxBullets") return current, max end local function invoke(tool, action) task.spawn(function() pcall(ReloadRemote.InvokeServer, ReloadRemote, tool, action) end) end local oldBullet = BulletHandler.bullet BulletHandler.bullet = function(self, data) if Config.SilentAim and data then local target = getClosestTarget() if target then data.position = target.Position data.hit = target if data.origin then local dir = (target.Position - data.origin).Unit data.velocity = dir * 5000 data.direction = dir end data.normal = Vector3.new(0, 1, 0) end end return oldBullet(self, data) end local old_new = ActiveCast.new ActiveCast.new = function(caster, origin, direction, velocity, behavior) behavior = behavior or {} behavior.CanPierceFunction = function(cast, result) if not Config.Wallbang or not result or not result.Instance then return false end local model = result.Instance:FindFirstAncestorOfClass("Model") if model and (model:FindFirstChild("Humanoid") or model == LocalPlayer.Character) then return false end return true end behavior.RaycastParams = behavior.RaycastParams or RaycastParams.new() behavior.RaycastParams.FilterType = Enum.RaycastFilterType.Exclude behavior.RaycastParams.FilterDescendantsInstances = {LocalPlayer.Character} behavior.RaycastParams.IgnoreWater = true behavior.HighFidelityBehavior = 1 behavior.HighFidelitySegmentSize = 5 behavior.Gravity = Vector3.new(0, 0, 0) return old_new(caster, origin, direction, velocity, behavior) end local reloading = false local ammoConnections = {} local function doReload(tool) if reloading then return end local current, max = getAmmo(tool) if not current or not max or current >= max then return end reloading = true task.spawn(function() invoke(tool, "Start Reload") task.wait(0.05) for i = 1, max - current do local fresh, freshMax = getAmmo(tool) if fresh and freshMax and fresh >= freshMax then break end invoke(tool, "New Shell") invoke(tool, "Insert Shell") task.wait(0.05) end invoke(tool, "Stop Reload") reloading = false end) end local function watchTool(tool) for _, c in pairs(ammoConnections) do c:Disconnect() end ammoConnections = {} for _, attr in pairs({"CurrentAmmo", "Ammo", "Bullets"}) do if tool:GetAttribute(attr) ~= nil then table.insert(ammoConnections, tool:GetAttributeChangedSignal(attr):Connect(function() doReload(tool) end)) break end end end local function onCharacter(character) character.ChildAdded:Connect(function(child) if child:IsA("Tool") then watchTool(child) end end) character.ChildRemoved:Connect(function(child) if child:IsA("Tool") then for _, c in pairs(ammoConnections) do c:Disconnect() end ammoConnections = {} reloading = false end end) local tool = character:FindFirstChildOfClass("Tool") if tool then watchTool(tool) end end RunService.RenderStepped:Connect(function() circle.Visible = Config.ShowCircle if Config.ShowCircle then circle.Position = UserInput:GetMouseLocation() end end) if LocalPlayer.Character then onCharacter(LocalPlayer.Character) end LocalPlayer.CharacterAdded:Connect(onCharacter) local desyncEnabled = false local heartbeatConn = nil local realCF, realVel = nil, nil local BIND_NAME = "DesyncRestore" local function getRoot() local char = LocalPlayer.Character return char and char:FindFirstChild("HumanoidRootPart") end local function setTransparency(val) local char = LocalPlayer.Character if not char then return end for _, part in pairs(char:GetDescendants()) do if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" and not part:FindFirstAncestorOfClass("Tool") then part.Transparency = val end end end UserInput.InputBegan:Connect(function(input, gpe) if gpe or input.KeyCode ~= Enum.KeyCode.X then return end desyncEnabled = not desyncEnabled if desyncEnabled then setTransparency(0.5) RunService:BindToRenderStep(BIND_NAME, Enum.RenderPriority.First.Value, function() local r = getRoot() if r and realCF then r.CFrame = realCF if realVel then r.AssemblyLinearVelocity = realVel end end end) heartbeatConn = RunService.Heartbeat:Connect(function() local r = getRoot() if not r then return end realCF = r.CFrame realVel = r.AssemblyLinearVelocity r.CFrame = realCF * CFrame.new(0, 500, 0) r.AssemblyLinearVelocity = Vector3.zero end) else setTransparency(0) RunService:UnbindFromRenderStep(BIND_NAME) if heartbeatConn then heartbeatConn:Disconnect() heartbeatConn = nil end local r = getRoot() if r and realCF then r.CFrame = realCF if realVel then r.AssemblyLinearVelocity = realVel end end realCF, realVel = nil, nil end end) LocalPlayer.CharacterAdded:Connect(function() desyncEnabled = false RunService:UnbindFromRenderStep(BIND_NAME) if heartbeatConn then heartbeatConn:Disconnect() heartbeatConn = nil end realCF, realVel = nil, nil end) local teleportLocations = { [Enum.KeyCode.One] = Vector3.new(732, 2390, 248), [Enum.KeyCode.Two] = Vector3.new(795, 2437, 265), [Enum.KeyCode.Three] = Vector3.new(608, 1565, 233), [Enum.KeyCode.Four] = Vector3.new(811, 2390, 546), [Enum.KeyCode.Five] = Vector3.new(431, 2418, 349), [Enum.KeyCode.Zero] = Vector3.new(1000000000, 1000000000, 1000000000), } UserInput.InputBegan:Connect(function(input, gpe) if gpe then return end if not (UserInput:IsKeyDown(Enum.KeyCode.LeftControl) or UserInput:IsKeyDown(Enum.KeyCode.RightControl)) then return end local pos = teleportLocations[input.KeyCode] if not pos then return end local root = LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("HumanoidRootPart") if root then root.CFrame = CFrame.new(pos) end end) UserInput.InputBegan:Connect(function(input, gpe) if gpe or input.KeyCode ~= Enum.KeyCode.T then return end local char = LocalPlayer.Character if not char then return end local tool = char:FindFirstChild("C4") or LocalPlayer.Backpack:FindFirstChild("C4") if not tool or char:FindFirstChild("C4") == nil then return end local Event = RepStorage.Remotes.Fire Event:FireServer(tool, "Detonate") end) local function zeroPrompts(parent) for _, v in pairs(parent:GetDescendants()) do if v:IsA("ProximityPrompt") then v.HoldDuration = 0 end end end zeroPrompts(workspace) workspace.DescendantAdded:Connect(function(v) if v:IsA("ProximityPrompt") then v.HoldDuration = 0 end end)