--↓ Configuration here. Don't make the multiplier too high _G.farm_multiplier = 5 _G.farm_enabled = true -- Implementation below local _G = _G local Event = game:GetService("ReplicatedStorage"):WaitForChild("RemoteEvents"):WaitForChild("CarnivalCompleteShootingGallery") local PartIndexes = {} local Parts = {};do local function SetupConnections(Instance: Instance) for _, Object in Instance:GetDescendants() do local Index = #Parts + 1 PartIndexes[Object] = Index Parts[Index] = Object end Instance.DescendantAdded:Connect(function(Descendant) local Index = #Parts + 1 PartIndexes[Descendant] = Index Parts[Index] = Descendant end) Instance.DescendantRemoving:Connect(function(Descendant) local Index = PartIndexes[Descendant] if Index then Parts[Index] = nil end end) end SetupConnections(workspace) SetupConnections(game:GetService("Players")) SetupConnections(game:GetService("Lighting")) SetupConnections(game:GetService("ReplicatedFirst")) SetupConnections(game:GetService("ReplicatedStorage")) SetupConnections(game:GetService("TextChatService")) end local Random = Random.new() local NextInteger = Random.NextInteger local FireServer = Event.FireServer game:GetService("RunService").Heartbeat:Connect(function() if not _G.farm_enabled then return end local NumParts = #Parts for _ = 1, _G.farm_multiplier do local Index = NextInteger(Random, 1, NumParts) local Part = Parts[Index] if not Part then continue end FireServer(Event, Part) PartIndexes[Part] = nil Parts[Index] = nil end end)