-- collect all cuz why not local function collectAll() for _, child in ipairs(Workspace:GetChildren()) do pcall(function() if child.Name == "BasePlatform" and child:GetAttribute("OwningUserId") == LocalPlayer.UserId then local character = game:GetService("Players").LocalPlayer.Character local rootPart = character and character:FindFirstChild("HumanoidRootPart") if rootPart then firetouchinterest(rootPart, child.CashCollectionPlatform, 0) task.wait() firetouchinterest(rootPart, child.CashCollectionPlatform, 1) end end end) end end local function spawnCard(tier, name, rarity) game:GetService("ReplicatedStorage").Events.GrantPlayerPack:FireServer(string.format("%s|%s", tier, name), false, rarity) end -- example spawnCard("3", "L. Messi", "supernova")