for l,s in pairs(RS.GamepassIDs:GetChildren())do MS.PromptGamePassPurchaseFinished:Connect(function(l,L,Q)if Q and s.Value==L then if s.Name=="\084\114\105\112\108\101\079\112\101\110"then l.Data.TripleEggOwned.Value=true elseif s.Name=="\065\117\116\111\079\112\101\110"then l.Data.AutoEggOwned.Value=true elseif s.Name=="\069\120\116\114\097\069\113\117\105\112\112\101\100"then l.Data.MaxEquip.Value=RS.Pets.Settings.DefaultMaxEquipped.Value+5 elseif s.Name=="\069\120\116\114\097\083\116\111\114\097\103\101"then l.Data.MaxStorage.Value=RS.Pets.Settings.DefaultMaxStorage.Value+30 end end end)game.Players.PlayerAdded:Connect(function(l)local L=l:WaitForChild("\068\097\116\097",math.huge)if MS:UserOwnsGamePassAsync(l.UserId,s.Value)then if s.Name=="\084\114\105\112\108\101\079\112\101\110"then l.Data.TripleEggOwned.Value=true elseif s.Name=="\065\117\116\111\079\112\101\110"then l.Data.AutoEggOwned.Value=true elseif s.Name=="\069\120\116\114\097\069\113\117\105\112\112\101\100"then l.Data.MaxEquip.Value=RS.Pets.Settings.DefaultMaxEquipped.Value+5 elseif s.Name=="\069\120\116\114\097\083\116\111\114\097\103\101"then l.Data.MaxStorage.Value=RS.Pets.Settings.DefaultMaxStorage.Value+30 end end end)end


for i,v in pairs(RS.GamepassIDs:GetChildren()) do
	MS.PromptGamePassPurchaseFinished:Connect(function(plr,ido,purchased)
		if purchased and v.Value == ido then
			if v.Name == "TripleOpen" then
				plr.Data.TripleEggOwned.Value = true
			elseif v.Name == "AutoOpen" then
				plr.Data.AutoEggOwned.Value = true
			elseif v.Name == "ExtraEquipped" then
				plr.Data.MaxEquip.Value = RS.Pets.Settings.DefaultMaxEquipped.Value + 5
			elseif v.Name == "ExtraStorage" then
				plr.Data.MaxStorage.Value = RS.Pets.Settings.DefaultMaxStorage.Value + 30
			end
		end
	end)
	game.Players.PlayerAdded:Connect(function(plr)
		local Data = plr:WaitForChild("Data", math.huge)
		if MS:UserOwnsGamePassAsync(plr.UserId, v.Value) then
			if v.Name == "TripleOpen" then
				plr.Data.TripleEggOwned.Value = true
			elseif v.Name == "AutoOpen" then
				plr.Data.AutoEggOwned.Value = true
			elseif v.Name == "ExtraEquipped" then
				plr.Data.MaxEquip.Value = RS.Pets.Settings.DefaultMaxEquipped.Value + 5
			elseif v.Name == "ExtraStorage" then
				plr.Data.MaxStorage.Value = RS.Pets.Settings.DefaultMaxStorage.Value + 30
			end
		end
	end)
end
