local ReplicatedStorage = game:GetService("ReplicatedStorage") local UserInputService = game:GetService("UserInputService") local Players = game:GetService("Players") local Workspace = game:GetService("Workspace") local player = Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local weapon = character:WaitForChild("G17") -- Wait until the gun exists local hitRemote = ReplicatedStorage:WaitForChild("RS_Package"):WaitForChild("Assets"):WaitForChild("Remotes"):WaitForChild("HitObject") -- Function to shoot a specific camera with 9999 damage local function shootCamera(unionPart) if weapon and unionPart then local args = { [1] = weapon, -- Gun [2] = unionPart, -- Target (Union part inside Cameras) [3] = false, -- Keep false [6] = character.PrimaryPart.Position, -- Shooter position [7] = 9999, -- DAMAGE VALUE (9999) [9] = unionPart.Position -- Target position } hitRemote:FireServer(unpack(args)) end end -- Function to find all "Union" parts inside workspace.Cameras and shoot them local function autoShootCameras() local camerasFolder = Workspace:FindFirstChild("Cameras") if camerasFolder then for _, obj in pairs(camerasFolder:GetChildren()) do if obj:IsA("Model") then -- Ensure it's a model local union = obj:FindFirstChild("Union") if union then shootCamera(union) end elseif obj:IsA("UnionOperation") then -- In case Unions are directly in Cameras shootCamera(obj) end end end end -- Detect when "Y" is pressed UserInputService.InputBegan:Connect(function(input, gameProcessed) if gameProcessed then return end if input.KeyCode == Enum.KeyCode.Y then autoShootCameras() end end)